Skip to content

Instantly share code, notes, and snippets.

@emiaj
Last active August 29, 2015 14:06
Show Gist options
  • Save emiaj/7a9ed68081a6846f33b9 to your computer and use it in GitHub Desktop.
Save emiaj/7a9ed68081a6846f33b9 to your computer and use it in GitHub Desktop.
sudo docker build -t varshared .
sudo docker run -v ~/.ssh:/var/shared/.ssh -v ~/.sbt:/var/shared/.sbt --name data busybox
from busybox
VOLUME /var/shared
RUN touch /var/shared/placeholder
sudo docker run --volumes-from data --rm varshared ls -a /var/shared
sudo docker run -v ~/.ssh:/var/shared/.ssh -v ~/.sbt:/var/shared/.sbt --rm varshared ls -a /var/shared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment