Skip to content

Instantly share code, notes, and snippets.

@rabmarjan
Last active November 17, 2018 12:44
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 rabmarjan/e5c0a69b05ecfbb516fc5b14910b052b to your computer and use it in GitHub Desktop.
Save rabmarjan/e5c0a69b05ecfbb516fc5b14910b052b to your computer and use it in GitHub Desktop.
docker build -t postgres10 .
docker run -d -it -v postgres:/var/lib/postgresql/10/main -p 5433:5432 postgres10 bash
docker exec -it $(docker ps --format "{{.ID}}") bash service postgresql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment