🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
阿里云docker源[https://help.aliyun.com/document\_detail/60742.html] https://docs.docker.com/engine/install/ubuntu/ #### 使用Docker官方源: `curl -fLsS https://get.docker.com/ | sh` Docker官方源在国内访问不太稳定。 #### [](https://kiwenlau.com/note/2018/07/09/install-docker-with-shell/#%E4%BD%BF%E7%94%A8DaoCloud%E6%BA%90%EF%BC%9A "使用DaoCloud源:")使用[DaoCloud](https://download.daocloud.io/Docker_Mirror/Docker)源: `curl -sSL https://get.daocloud.io/docker | sh` (https://help.aliyun.com/document_detail/60742.html) ``` yum list docker-ce --showduplicates ``` ``` #卸载旧版本 yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-selinux \ docker-engine-selinux \ docker-engine #安装所需的包 yum install -y yum-utils \ device-mapper-persistent-data \ lvm2 #设置稳定存储库 # yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo #安装DOCKER CE yum install docker-ce docker-ce-cli containerd.io #控制DOCKER systemctl enable docker systemctl disable docker systemctl start docker systemctl stop docker systemctl status docker #是否设置开机重启 systemctl is-enabled docker #常用命令 #设置开机启动docker服务: systemctl enable docker systemctl daemon-reload systemctl restart docker && systemctl enable docker ```