标签:conf res div docker var user dock data root
Docker部署PostGres
docker run -d --name postgres --restart always -e POSTGRES_USER=‘postgres‘ -e POSTGRES_PASSWORD=‘123456‘ -e ALLOW_IP_RANGE=0.0.0.0/0 -v /home/postgres/data:/var/lib/postgresql -p 5432:5432 -t postgres
Docker部署MySql
docker run -p 3306:3306 --name mysql --restart always -v /mydata/mysql/log:/var/log/mysql -v /mydata/mysql/data:/var/lib/mysql -v /mydata/mysql/conf:/etc/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7
标签:conf res div docker var user dock data root
原文地址:https://www.cnblogs.com/xiaofengfree/p/14656577.html