docker run --name postgres -v 宿主机数据文件位置:/var/lib/postgresql -e POSTGRES_PASSWORD=密码 -d -p 宿主机端口:5432 postgres