内网:172.16.1.66 外网:10.0.0.66 基于wordpress 镜像构建worpress容器 [root@oldboy ~]# docker built -t csphere/wordpress:4.2 ./docker-training/wordpress/ [root@oldboy ~]# docker run -d -p 80:80 --name wordpress -e WORDPRESS_DB_HOST=172.16.1.66 -e WORDPRESS_DB_USER=admin -e WORDPRESS_DB_PASSWORD=csphere2015 csphere/wordpress:4.2 136b62b500d13922da2452ee290dfd755fd8333c3e2ac79b3136c19c5289b742 [root@oldboy ~]# [root@oldboy ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 136b62b500d1 csphere/wordpress:4.2 "/init.sh /usr/bin/s 6 minutes ago Up 6 minutes 22/tcp, 443/tcp, 0.0.0.0:80->80/tcp wordpress d9dddf959cdf csphere/mysql:5.5 "/scripts/start" 24 hours ago Up 24 hours 22/tcp, 0.0.0.0:3306->3306/tcp newdb cf1f2bd73808 csphere/php-fpm:5.4 "/usr/bin/supervisor 28 hours ago Up 28 hours 22/tcp, 443/tcp, 0.0.0.0:8080->80/tcp website 55e9793e58c0 csphere/centos:7.1 "/usr/bin/supervisor 29 hours ago Up 29 hours
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1834914
原文地址:http://wsxxsl.blog.51cto.com/9085838/1834914