Created
February 21, 2019 08:46
-
-
Save thephucit/46ff49f5b91e8519b35fcfd90069370c to your computer and use it in GitHub Desktop.
Run PostgreSQL on docker ubuntu server
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 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/Kinto/kinto/wiki/How-to-run-a-PostgreSQL-server%3F