centos7.6安装docker指定版本

        2020.12.07 13:34:50 192.168.99.250 root yum install -y yum-utils device-mapper-persistent-data lvm2
    3  2020.12.07 13:35:05 192.168.99.250 root yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
    4  2020.12.07 13:35:18 192.168.99.250 root rpm --import https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
    5  2020.12.07 13:35:26 192.168.99.250 root yum makecache fast
    6  2020.12.07 13:35:41 192.168.99.250 root yum list docker-ce --showduplicates | sort -r
    7  2020.12.07 13:36:30 192.168.99.250 root yum install -y docker-ce-18.06.3.ce-3.el7
    8  2020.12.07 13:37:18 192.168.99.250 root sevice docker start
    9  2020.12.07 13:37:26 192.168.99.250 root service docker start
   10  2020.12.07 13:37:52 192.168.99.250 root systemctl enable docker

猜你喜欢

转载自blog.csdn.net/ccagy/article/details/110817027