CentOS使用国内源并安装Docker
Ricky
posted @ 2017年11月07日 11:07
in Other
, 1534 阅读
使用阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
安装Docker CE
# step 1: 安装必要的一些系统工具
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
# Step 2: 添加软件源信息
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# Step 3: 更新并安装 Docker-CE
sudo yum makecache fast
sudo yum -y install docker-ce
# Step 4: 开启Docker服务
sudo service docker start
使用国内Docker镜像
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://your_docker_image_server"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
2021年11月03日 14:48
We are truly grateful for your blog section. You will track down a colossal heap of approaches in the wake of visiting your post. Amazing work