Skip to content

Instantly share code, notes, and snippets.

@cpuguy83
Created May 16, 2014 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpuguy83/7b5dadde0c1ad0fe7df3 to your computer and use it in GitHub Desktop.
Save cpuguy83/7b5dadde0c1ad0fe7df3 to your computer and use it in GitHub Desktop.
volume maniplutation
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