更新docker笔记
- 升级系统包 yum update
- 卸载旧版本的docker yum erase docker docker-common docker-client docker-compose
- 添加docker的yum源 /etc/yum.repos.d/docker.repo
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg - yum install -y docker-engine
- systemctl enable docker.service
- systemctl start docker
- docker info