Docker for Developers

This guide is intended for people who want to use our prepared docker environments to work on developing Spack or working on spack packages. It is meant to serve as the companion documentation for the Packaging Guide.


To get started, all you need is the latest version of docker.

$ cd share/spack/docker
$ source config/ubuntu.bash
$ ./

This command should drop you into an interactive shell where you can run spack within an isolated docker container running ubuntu. The copy of spack being used should be tied to the working copy of your cloned git repo, so any changes you make should be immediately reflected in the running docker container. Feel free to add or modify any packages or to hack on spack, itself. Your contained copy of spack should immediately reflect all changes.

To work within a container running a different linux distro, source one of the other environment files under config.

$ source config/fedora.bash
$ ./