環境:Linux環境中的Centos7.x以上版本
> yum update
> yum install -y yum-utils device-mapper-persistent-data lvm2
> yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
> yum -y install docker-ce
> docker -v
> systemctl start docker
docker info
docker --help
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://0wrdwnn6.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
詳細命令:
systemctl start docker
systemctl stop docker
systemctl restart docker
systemctl status docker
systemctl enable docker
systemctl unenable docker
docker info
詳細操作:
1、檢視映象
docker images
2:拉取映象
1. > docker pull 映象的名字
2. > docker pull tomcat
本作品採用《CC 協議》,轉載必須註明作者和本文連結