Skip to content

Instantly share code, notes, and snippets.

@thephucit
Created February 21, 2019 08:46
Show Gist options
  • Save thephucit/46ff49f5b91e8519b35fcfd90069370c to your computer and use it in GitHub Desktop.
Save thephucit/46ff49f5b91e8519b35fcfd90069370c to your computer and use it in GitHub Desktop.
Run PostgreSQL on docker ubuntu server
sudo apt-get install docker.io
postgres=$(sudo docker run -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 postgres)
sudo docker commit $postgres kinto-db
kintodb=$(sudo docker run -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 kinto-db)
# ... Use it!
sudo docker stop $kintodb
@thephucit
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment