docker 实战
拉取网址:hub.docker.com
mysql容器
docker run -id -p 3306:3306 --name=c_mysql -v /docker/mysql/conf.d:/etc/mysql/conf.d -v /docker/mysql/logs:/logs -v /docker/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql
tomcat容器
docker run -id --name=c_tomcat -p 8081:8080 -v /docker/tomcat:/usr/local/tomcat/webapps tomcat
nginx容器
docker run -id --name=c_nginx -p 81:80 -v /docker/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v /docker/nginx/logs:/var/log/nginx -v /docker/nginx/html:/usr/share/nginx/html nginx
reids容器
docker run -id --name=c_redis -p 6380:6379 redis
快,滋醒这个做梦的人,有糖尿病的往后靠靠哈,不要给他点甜头!