镜像地址:https://hub.docker.com/_/postgres
1.拉取
docker pull postgres
2.创建
docker run -d \ -p 5432:5432 \ --name postgres \ --restart=always \ -e POSTGRES_PASSWORD=mysecretpassword \ -v /mnt/docker/postgresql/data:/var/lib/postgresql/data \ postgres
标签:5432,PostgreSQL,postgres,data,Docker,安装,docker From: https://www.cnblogs.com/fanqisoft/p/17065989.html