Docker安装(CentOS)
Docker安装(CentOS)
检查配置
1 | 要求CentOS内核版本高于3.10 |
卸载之前安装
1 | yum remove docker |
安装依赖
1 | yum install -y yum-utils |
设置仓库
1 | yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo #docker的yum源 |
安装Docker
1 | yum install docker-ce docker-ce-cli containerd.io |
#验证安装 docker -v
镜像加速
1 | https://www.aliyun.com/product/acr?spm=5176.202918.1263681.2.1bf54ef51HwG0Z |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.