The main CMD is /bin/zsh so just: docker run -it rosstimson/dev
I mount local volumes with the following shell aliases:
function ddev-go () {
docker run -it --name $1 \
-h go-dev \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/home/rosstimson/go/src/github.com/rosstimson/$1 \
rosstimson/dev
}
function ddev-py () {
docker run -it --name $1 \
-h py-dev \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/home/rosstimson/python/$1 \
rosstimson/dev
}
I can then run ddev-go my-go-project and get the current local
directory mounted appropriately along with the Docker socket being
mounted too.
Note: You'll need to use sudo if running docker commands within
the container.
Author:: Ross Timson <[email protected]>.
License:: Licensed under WTFPL.
Content type
Image
Digest
sha256:e7906d8b7…
Size
634 MB
Last updated
over 10 years ago
docker pull rosstimson/dev