如下,下载镜像过程略,实际使用时最好加上卷
docker run -d -p 5444:5432 -e POSTGRES_USER=blog -e POSTGRES_DB=blog -e POSTGRES_PASSWORD=123 --name post-db postgres:9.6
如下,下载镜像过程略,实际使用时最好加上卷
docker run -d -p 5444:5432 -e POSTGRES_USER=blog -e POSTGRES_DB=blog -e POSTGRES_PASSWORD=123 --name post-db postgres:9.6
转载于:https://my.oschina.net/u/2518341/blog/3078873