返回

Centos7安装docker

卸载旧版本docker

1
2
3
4
5
6
7
8
yum remove docker \
		  docker-client \
		  docker-client-latest \
		  docker-common \
		  docker-latest \
		  docker-latest-logrotate \
		  docker-logrotate \
		  docker-engine

安装依赖

1
yum install -y yum-utils

配置yum docker源

1
2
3
yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

安装docker

1
 yum install docker-ce docker-ce-cli containerd.io

启动docker

1
systemctl start docker
发表了9篇文章 · 总计5.02k字
已运行