1. 下载docker-ce的repo curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo 2. 安装依赖 yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm 3. 安装docker-ce 问题:使用dnf -y ?install docker-ce ?docker-ce-cli --nobest命令安装会报错: ? ? https://download.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml: [Errno 12] Timeout on https://download.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml: (28, 'Operation timed out after 30002 milliseconds with 0 out of 0 bytes received') Trying other mirror.
解决:参考https://blog.csdn.net/chendi19881217/article/details/104340310
问题:?Waiting for process with pid 38001 to finish.
根据提示的意思:等待进程与pid 38001一起完成
解决:参考https://www.cnblogs.com/liuyakai/p/14769909.html
?问题:Problem 1: problem with installed package podman-3.0.1-6.module_el8.4.0+781+acf4c33b.x86_64
解决:参考资料内的第二种方式https://blog.csdn.net/ywyngq/article/details/118158608
4.启动 docker systemctl start docker 5.查看 docker 版本信息 docker -v 6.设置开机自动启动
sudo systemctl start docker
sudo systemctl enable docker
|