文章目录
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
ipconfig
systemctl stop firewalld
systemctl disable firewalld
getenforce
systemctl start iptables
systemctl start iptables
yum -y install iptables-services
systemctl start iptables
systemctl enable iptables
iptables -F
service iptables save
yum update
reboot
rz -E
mkdir docker
mv docker* docker
cd docker/
yum -y install *
systemctl start docker
systemctl enable docker
systemctl status docker
docker run hello-world
cp /lib/systemd/system/docker.service /etc/systemd/system/docker.service
chmod a+x /etc/systemd/system/docker.service
vim /etc/systemd/system/docker.service
ExecStart=/usr/bin/dockerd-current --registry-mirror=https://registry.docker-cn.com
systemctl daemon-reload
systemctl restart docker
ps -ef | grep docker
WordPress构建
docker pull wordpress
docker pull mariadb
docker run --name db --env MYSQL_ROOT-PASSWORD=example -d mariadb
docker run --name MyWordPress --link db:mysql -p 8080:80 -d wordpress
来源:CSDN
作者:IT_harry
链接:https://blog.csdn.net/weixin_43849280/article/details/104031370