安裝docker 1.更新yum包 yum update 2.卸載舊版本 yum remove docker 3.安裝依賴 yum install -y yum-utils device-mapper-persistent-data lvm2 4.設置yum源 yum-config-manager ...
安裝docker 1.更新yum包 yum update 2.卸載舊版本 yum remove docker 3.安裝依賴 yum install -y yum-utils device-mapper-persistent-data lvm2 4.設置yum源 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 5.安裝docker yum install docker-ce 6.啟動docker systemctl start docker systemctl enable docker //加入開機自啟 7.驗證安裝是否成功 docker version