1.卸載系統(tǒng)docker
yum remove docker\docker-client\docker-client-latest\docker-common\docker-latest\docker-latest-logrotate\docker-logrotate\docker-engine
2.需要的安裝包
yum install -y yum-utils
3.設(shè)置鏡像庫地址
yum-config-manager? \
? ? ? --add-repo? \??
? ? ??https://cr.console.aliyun.com/cn-shanghai/instances/repositories? (我這里是阿里的)
4.安裝docker
yum install docker-ce docker-ce-cli containerd.io
5.啟動docker
systemctl start docker
6.查看是否安裝成功
docker version