Created
May 16, 2014 14:54
-
-
Save cpuguy83/7b5dadde0c1ad0fe7df3 to your computer and use it in GitHub Desktop.
volume maniplutation
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
docker run -d -v /var/lib/postgresql --entrypoint /bin/echo --name data-postres cpuguy83/postgres Data-only container for postgres | |
docker run --rm -v /path/to/jar:/myjar.jar --volumes-from data-postgres --entrypoint /bin/bash cpuguy83/java -c "java /myjar.jar" | |
docker run -d --name postgres --volumes-from data-postgres cpuguy83/postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment