[研究] Docker 4.1.1 自動化應用程式部署工具 安裝 (Rocky Linux 8.6)
2022-11-02網站
https://wiki.centos.org/zh-tw/Cloud/Docker
參考
Add the docker repository
Use the dnf utility to add the docker repository to your Rocky Linux server. Type:
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Install the needed packages
Install the latest version of Docker Engine, containerd, and Docker Compose, by running:
sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
Start and enable the systemd docker service (dockerd)
Use the systemctl utility to configure the dockerd daemon to automatically startup with the next system reboot and simultaneously start it for the current session. Type:
sudo systemctl --now enable docker
Notes
docker-ce : This package provides the underlying technology for building and running docker containers (dockerd)
docker-ce-cli : Provides the command line interface (CLI) client docker tool (docker)
containerd.io : Provides the container runtime (runc)
docker-compose-plugin : A plugin that provides the 'docker compose' subcommand
Docker 是一個開源的引擎,透過輕量級、便攜、自給自足、能執行於任何環境的容器,自動化應用程式的部署。
安裝
[user1@localhost ~]$ sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for user1:
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
[user1@localhost ~]$
|
[user1@localhost ~]$ sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin Rocky Linux 8 - AppStream 2.1 MB/s | 11 MB 00:05 Rocky Linux 8 - BaseOS 1.9 MB/s | 9.0 MB 00:04 Rocky Linux 8 - Extras 1.9 kB/s | 12 kB 00:06 Docker CE Stable - x86_64 262 kB/s | 31 kB 00:00 Error: Problem 1: problem with installed package podman-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64 - package podman-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed - package podman-2:4.0.2-6.module+el8.6.0+971+69b94baf.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed - package podman-2:4.1.1-2.module+el8.6.0+997+05c9d812.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed - package podman-2:4.1.1-7.module+el8.6.0+1054+50b00ff4.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed - package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - cannot install the best candidate for the job - package runc-1.0.0-66.rc10.module+el8.5.0+770+e2f49861.x86_64 is filtered out by modular filtering - package runc-1.0.0-73.rc95.module+el8.6.0+783+10209741.x86_64 is filtered out by modular filtering - package runc-1.0.0-73.rc95.module+el8.6.0+973+7a06b91e.x86_64 is filtered out by modular filtering - package runc-1:1.0.3-1.module+el8.6.0+784+32aef5de.x86_64 is filtered out by modular filtering - package runc-1:1.0.3-1.module+el8.6.0+972+902006e0.x86_64 is filtered out by modular filtering Problem 2: problem with installed package podman-catatonit-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64 - package podman-catatonit-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64 requires podman = 2:4.0.2-6.module+el8.6.0+785+d1251653, but none of the providers can be installed - package podman-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.3-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.3-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.3-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.3-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.3-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package docker-ce-3:20.10.21-3.el8.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed - package containerd.io-1.4.3-3.2.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.3-3.2.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.3-3.2.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.3-3.2.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.3-3.2.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.3-3.2.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.3-3.2.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.3-3.2.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.3-3.2.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.3-3.2.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.10-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.10-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.11-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.11-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.12-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.12-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.13-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.13-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.4-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.4-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.6-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.6-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.8-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.8-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.4.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.5.10-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.5.10-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.5.11-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.5.11-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.4-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.4-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.6-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.6-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.7-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.7-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.8-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.8-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 - cannot install the best candidate for the job - package runc-1.0.0-66.rc10.module+el8.5.0+770+e2f49861.x86_64 is filtered out by modular filtering - package runc-1.0.0-73.rc95.module+el8.6.0+783+10209741.x86_64 is filtered out by modular filtering - package runc-1.0.0-73.rc95.module+el8.6.0+973+7a06b91e.x86_64 is filtered out by modular filtering - package runc-1:1.0.3-1.module+el8.6.0+784+32aef5de.x86_64 is filtered out by modular filtering - package runc-1:1.0.3-1.module+el8.6.0+972+902006e0.x86_64 is filtered out by modular filtering - package containerd.io-1.4.4-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.4-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.4-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.4-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.4-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.4-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.4-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.4-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.6-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.6-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.6-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.6-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.6-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.6-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.6-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.6-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.8-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.8-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.8-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.8-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.8-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.8-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.8-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.8-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.10-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.10-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.10-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.10-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.10-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.10-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.10-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.10-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.11-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.11-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.11-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.11-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.11-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.11-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.11-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.11-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.12-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.12-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.12-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.12-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.12-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.12-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.12-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.12-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.13-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.13-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.4.13-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.13-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.4.13-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.13-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.4.13-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.4.13-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.5.10-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.5.10-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.5.10-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.5.10-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.5.10-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.5.10-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.5.10-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.5.10-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.5.11-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.5.11-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.5.11-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.5.11-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.5.11-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.5.11-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.5.11-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.5.11-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.4-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.4-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.4-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.4-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.4-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.4-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.4-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.4-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.6-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.6-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.6-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.6-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.6-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.6-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.6-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.6-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.7-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.7-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.7-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.7-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.7-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.7-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.7-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.7-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.8-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.8-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.8-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.8-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.8-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.8-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.8-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.8-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.0.3-2.module+el8.6.0+971+69b94baf.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+1054+50b00ff4.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-2.module+el8.6.0+997+05c9d812.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.3-3.module+el8.6.0+1058+f3d643c8.x86_64 - package podman-catatonit-2:4.0.2-6.module+el8.6.0+971+69b94baf.x86_64 requires podman = 2:4.0.2-6.module+el8.6.0+971+69b94baf, but none of the providers can be installed - package podman-2:4.0.2-6.module+el8.6.0+971+69b94baf.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed - package podman-catatonit-2:4.1.1-2.module+el8.6.0+997+05c9d812.x86_64 requires podman = 2:4.1.1-2.module+el8.6.0+997+05c9d812, but none of the providers can be installed - package podman-2:4.1.1-2.module+el8.6.0+997+05c9d812.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed - package podman-catatonit-2:4.1.1-7.module+el8.6.0+1054+50b00ff4.x86_64 requires podman = 2:4.1.1-7.module+el8.6.0+1054+50b00ff4, but none of the providers can be installed - package podman-2:4.1.1-7.module+el8.6.0+1054+50b00ff4.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) [user1@localhost ~]$ |
不使用下面移除衝突的套件法,改用 allowerasing 參數看看
[user1@localhost ~]$ sudo dnf remove podman buildah -y
|
再次安裝
[user1@localhost ~]$ sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin --allowerasing
Last metadata expiration check: 0:01:32 ago on Tue 01 Nov 2022 10:17:41 PM EDT.
Dependencies resolved.
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
containerd.io x86_64 1.6.9-3.1.el8 docker-ce-stable 33 M
replacing runc.x86_64 1:1.0.3-2.module+el8.6.0+785+d1251653
docker-ce x86_64 3:20.10.21-3.el8 docker-ce-stable 21 M
docker-ce-cli x86_64 1:20.10.21-3.el8 docker-ce-stable 30 M
docker-compose-plugin
x86_64 2.12.2-3.el8 docker-ce-stable 10 M
Installing dependencies:
docker-ce-rootless-extras
x86_64 20.10.21-3.el8 docker-ce-stable 4.6 M
libcgroup x86_64 0.41-19.el8 baseos 69 k
Installing weak dependencies:
docker-scan-plugin
x86_64 0.21.0-3.el8 docker-ce-stable 3.8 M
Removing dependent packages:
buildah x86_64 1:1.24.2-4.module+el8.6.0+785+d1251653 @AppStream 30 M
cockpit-podman noarch 43-1.module+el8.6.0+785+d1251653 @AppStream 493 k
containers-common
x86_64 2:1-27.module+el8.6.0+785+d1251653 @AppStream 361 k
podman x86_64 2:4.0.2-6.module+el8.6.0+785+d1251653 @AppStream 51 M
podman-catatonit x86_64 2:4.0.2-6.module+el8.6.0+785+d1251653 @AppStream 764 k
Transaction Summary
=======================================================================================
Install 7 Packages
Remove 5 Packages
Total download size: 102 M
Downloading Packages:
(1/7): libcgroup-0.41-19.el8.x86_64.rpm 29 kB/s | 69 kB 00:02
(2/7): docker-ce-cli-20.10.21-3.el8.x86_64.rpm 3.1 MB/s | 30 MB 00:09
(3/7): docker-ce-20.10.21-3.el8.x86_64.rpm 1.8 MB/s | 21 MB 00:12
(4/7): docker-ce-rootless-extras-20.10.21-3.el8.x86_64.rpm 3.3 MB/s | 4.6 MB 00:01
(5/7): docker-scan-plugin-0.21.0-3.el8.x86_64.rpm 2.2 MB/s | 3.8 MB 00:01
(6/7): docker-compose-plugin-2.12.2-3.el8.x86_64.rpm 2.2 MB/s | 10 MB 00:04
(7/7): containerd.io-1.6.9-3.1.el8.x86_64.rpm 1.8 MB/s | 33 MB 00:18
------------------------------------------------------------------------------------------------------------------------------------------
Total 5.3 MB/s | 102 MB 00:19
Rocky Linux 8 - BaseOS 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x6D745A60:
Userid : "Release Engineering <infrastructure@rockylinux.org>"
Fingerprint: 7051 C470 A929 F454 CEBE 37B7 15AF 5DAC 6D74 5A60
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
Key imported successfully
Docker CE Stable - x86_64 14 kB/s | 1.6 kB 00:00
Importing GPG key 0x621E9F35:
Userid : "Docker Release (CE rpm) <docker@docker.com>"
Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
From : https://download.docker.com/linux/centos/gpg
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: docker-scan-plugin-0.21.0-3.el8.x86_64 1/1
Installing : docker-scan-plugin-0.21.0-3.el8.x86_64 1/13
Running scriptlet: docker-scan-plugin-0.21.0-3.el8.x86_64 1/13
Installing : docker-ce-cli-1:20.10.21-3.el8.x86_64 2/13
Running scriptlet: docker-ce-cli-1:20.10.21-3.el8.x86_64 2/13
Installing : containerd.io-1.6.9-3.1.el8.x86_64 3/13
Running scriptlet: containerd.io-1.6.9-3.1.el8.x86_64 3/13
Running scriptlet: libcgroup-0.41-19.el8.x86_64 4/13
Installing : libcgroup-0.41-19.el8.x86_64 4/13
Running scriptlet: libcgroup-0.41-19.el8.x86_64 4/13
Installing : docker-ce-rootless-extras-20.10.21-3.el8.x86_64 5/13
Running scriptlet: docker-ce-rootless-extras-20.10.21-3.el8.x86_64 5/13
Installing : docker-ce-3:20.10.21-3.el8.x86_64 6/13
Running scriptlet: docker-ce-3:20.10.21-3.el8.x86_64 6/13
Installing : docker-compose-plugin-2.12.2-3.el8.x86_64 7/13
Running scriptlet: docker-compose-plugin-2.12.2-3.el8.x86_64 7/13
Erasing : buildah-1:1.24.2-4.module+el8.6.0+785+d1251653.x86_64 8/13
Erasing : cockpit-podman-43-1.module+el8.6.0+785+d1251653.noarch 9/13
Erasing : podman-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64 10/13
Running scriptlet: podman-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64 10/13
Erasing : containers-common-2:1-27.module+el8.6.0+785+d1251653.x86_64 11/13
Erasing : podman-catatonit-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64 12/13
Obsoleting : runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 13/13
Running scriptlet: runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 13/13
Verifying : libcgroup-0.41-19.el8.x86_64 1/13
Verifying : containerd.io-1.6.9-3.1.el8.x86_64 2/13
Verifying : runc-1:1.0.3-2.module+el8.6.0+785+d1251653.x86_64 3/13
Verifying : docker-ce-3:20.10.21-3.el8.x86_64 4/13
Verifying : docker-ce-cli-1:20.10.21-3.el8.x86_64 5/13
Verifying : docker-ce-rootless-extras-20.10.21-3.el8.x86_64 6/13
Verifying : docker-compose-plugin-2.12.2-3.el8.x86_64 7/13
Verifying : docker-scan-plugin-0.21.0-3.el8.x86_64 8/13
Verifying : buildah-1:1.24.2-4.module+el8.6.0+785+d1251653.x86_64 9/13
Verifying : cockpit-podman-43-1.module+el8.6.0+785+d1251653.noarch 10/13
Verifying : containers-common-2:1-27.module+el8.6.0+785+d1251653.x86_64 11/13
Verifying : podman-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64 12/13
Verifying : podman-catatonit-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64 13/13
Installed:
containerd.io-1.6.9-3.1.el8.x86_64 docker-ce-3:20.10.21-3.el8.x86_64 docker-ce-cli-1:20.10.21-3.el8.x86_64
docker-ce-rootless-extras-20.10.21-3.el8.x86_64 docker-compose-plugin-2.12.2-3.el8.x86_64 docker-scan-plugin-0.21.0-3.el8.x86_64
libcgroup-0.41-19.el8.x86_64
Removed:
buildah-1:1.24.2-4.module+el8.6.0+785+d1251653.x86_64 cockpit-podman-43-1.module+el8.6.0+785+d1251653.noarch
containers-common-2:1-27.module+el8.6.0+785+d1251653.x86_64 podman-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64
podman-catatonit-2:4.0.2-6.module+el8.6.0+785+d1251653.x86_64
Complete!
[user1@localhost ~]$
|
設定開機立刻啟動
[user1@localhost ~]$ sudo systemctl --now enable docker
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
[user1@localhost ~]$
|
檢查
[user1@localhost ~]$ sudo systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2022-11-01 22:21:25 EDT; 13s ago Docs: https://docs.docker.com Main PID: 32999 (dockerd) Tasks: 9 Memory: 26.6M CGroup: /system.slice/docker.service └─32999 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock Nov 01 22:21:24 localhost.localdomain dockerd[32999]: time="2022-11-01T22:21:24.686271633-04:00" level=warning msg="Your kernel does not > Nov 01 22:21:24 localhost.localdomain dockerd[32999]: time="2022-11-01T22:21:24.686305972-04:00" level=warning msg="Your kernel does not > Nov 01 22:21:24 localhost.localdomain dockerd[32999]: time="2022-11-01T22:21:24.686515902-04:00" level=info msg="Loading containers: star> Nov 01 22:21:25 localhost.localdomain dockerd[32999]: time="2022-11-01T22:21:25.567179645-04:00" level=info msg="Default bridge (docker0)> Nov 01 22:21:25 localhost.localdomain dockerd[32999]: time="2022-11-01T22:21:25.696903981-04:00" level=info msg="Firewalld: interface doc> Nov 01 22:21:25 localhost.localdomain dockerd[32999]: time="2022-11-01T22:21:25.815974758-04:00" level=info msg="Loading containers: done> Nov 01 22:21:25 localhost.localdomain dockerd[32999]: time="2022-11-01T22:21:25.835590191-04:00" level=info msg="Docker daemon" commit=30> Nov 01 22:21:25 localhost.localdomain dockerd[32999]: time="2022-11-01T22:21:25.835742849-04:00" level=info msg="Daemon has completed ini> Nov 01 22:21:25 localhost.localdomain systemd[1]: Started Docker Application Container Engine. Nov 01 22:21:25 localhost.localdomain dockerd[32999]: time="2022-11-01T22:21:25.861738455-04:00" level=info msg="API listen on /var/run/d> [user1@localhost ~]$ |
檢查
[user1@localhost ~]$ ps aux | grep docker
root 3204 0.0 0.0 179372 768 ? Ss 22:16 0:00 gpg-agent --homedir /var/cache/PackageKit/8.6/metadata/docker-ce-stable-8-x86_64.tmp/gpgdir --use-standard-socket --daemon
root 32999 0.2 1.8 1431976 68780 ? Ssl 22:21 0:00 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
user1 33176 0.0 0.0 221936 1192 pts/0 S+ 22:22 0:00 grep --color=auto docker
[user1@localhost ~]$
|
檢查
[user1@localhost ~]$ docker -v
Docker version 20.10.21, build baeda1f
[user1@localhost ~]$
|
(完)
相關
[研究] Docker 20.10.21 自動化應用程式部署工具 安裝 (Rocky Linux 8.6)
[研究] Docker 20.10.21 自動化應用程式部署工具 安裝 (Rocky Linux 9.0)
https://shaurong.blogspot.com/2022/11/docker-411-rocky-linux-90.html
https://shaurong.blogspot.com/2022/11/docker-411-rocky-linux-90.html
[研究]Docker 20.10.6安裝 (Windows Server 2019)
[研究]Docker Compose 1.29.2 安裝 (Ubuntu 20.04.2 LTS x64)
[研究] docker 安裝 (Ubuntu 20.04.2 LTS x64)
[研究]Docker Compose 1.29.2 安裝 (CentOS 8.4)
[研究]docker 20.10.7 安裝 (CentOS 8.4)
[研究] Docker 1.7.1 自動化應用程式部署工具 安裝 (CentOS 7.1 x64)
什麼是 Docker
10個Q&A快速認識Docker
Docker 實作入門
《Docker —— 從入門到實踐》正體中文版
沒有留言:
張貼留言