Last active
August 29, 2015 14:06
-
-
Save emiaj/7a9ed68081a6846f33b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker build -t varshared . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -v ~/.ssh:/var/shared/.ssh -v ~/.sbt:/var/shared/.sbt --name data busybox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from busybox | |
VOLUME /var/shared | |
RUN touch /var/shared/placeholder | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run --volumes-from data --rm varshared ls -a /var/shared |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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