请在后台配置参数,参数名称:topads
网建经验

Docker国内Yum源和国内镜像仓库

网建经验 HTML我帮您 5月前  1866次浏览

使用阿里云Docker Yum源

sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum -y install docker-ce

Docker常用命令:
docker version
docker images
docker ps -a
docker rm xxx
docker rmi xxx
docker stop xxx
docker kill xxx
docker run -it --restart=always

systemctl enable docker
systemctl status docker
service docker start
service docker restart
service docker stop

docker使用国内镜像进行加速

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://s018s71i.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

发表评论