随着2024年6月30日,官方停止了对CentOS 7的维护,属于CentOS 7的时代终于结束了。当然,对于CentOS 7的维护停止,大家也不用过度紧张,目前仍有部分Linux版本可以提供企业级的生产可用系统服务,比如:AlmaLinux 8.x、9.x(AlmaLinux OS - Forever-Free Enterprise-Grade Operating System)。这里提一嘴,曾经被我寄予厚望的 Rocky Linux 8,在我的安装测试过程中,Release正式版本竟然出现很多问题,和官方反馈,竟然迟迟不改,而且态度让我很失望,所以直接放弃了Rocky。目前AlmaLinux 8、9版本我都安装了,未发现问题。所以,推荐大家在生产环境使用。
关于AlmaLinux系统,官方给的定位和说明:
An Open Source, community owned and governed, forever-free enterprise Linux distribution, focused on long-term stability, providing a robust production-grade platform. AlmaLinux OS is binary compatible with RHEL®.
直译:
AlmaLinux是一个开源的,社区拥有和管理的,永远免费的企业级Linux分发,关注长期稳定,提供一个健壮的生产级别的平台。AlmaLinux 操作系统与RHEL(红帽Linux)二进制兼容。
今天,我给大家展示一下,如何在AlmaLinux 8.10系统中安装和运行Docker-ce。
首先,我们需要在Docker-ce官网下载兼容CentOS 8系统的rpm包,下载地址:
https://download.docker.com/linux/centos/8/x86_64/stable/Packages/
官方的包下载后如下:
下载好以后,我们将上面的rpm包上传到AlmaLinux 8.10系统中,然后下载安装所需的依赖包。
[root@almalinux docker-ce]# ls -ltr
总用量 108728
-rw-r--r--. 1 root root 37048204 10月 22 10:37 containerd.io-1.6.32-3.1.el8.x86_64.rpm
-rw-r--r--. 1 root root 14279736 10月 22 10:38 docker-buildx-plugin-0.14.0-1.el8.x86_64.rpm
-rw-r--r--. 1 root root 8181560 10月 22 10:38 docker-ce-cli-26.1.3-1.el8.x86_64.rpm
-rw-r--r--. 1 root root 5210852 10月 22 10:38 docker-ce-rootless-extras-26.1.3-1.el8.x86_64.rpm
-rw-r--r--. 1 root root 28542392 10月 22 10:38 docker-ce-26.1.3-1.el8.x86_64.rpm
-rw-r--r--. 1 root root 14046812 10月 22 10:38 docker-compose-plugin-2.27.0-1.el8.x86_64.rpm
-rw-r--r--. 1 root root 4010384 10月 22 10:38 docker-scan-plugin-0.23.0-3.el8.x86_64.rpm
安装的时候,由于和AlmaLinux系统自带的Podman组件冲突而安装失败,因此需要在命令里面增加一些参数
[root@almalinux docker-ce]# yum install -y ./*.rpm --downloadonly --downloaddir=./
上次元数据过期检查:0:00:49 前,执行于 2024年10月22日 星期二 10时42分32秒。
错误:
问题 1: 安装的软件包的问题 podman-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64
- package podman-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64 from @System requires runc >= 1.0.0-57, but none of the providers can be installed
- package podman-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
- package podman-4:4.9.4-12.module_el8.10.0+3876+e55593a8.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
- package podman-4:4.9.4-13.module_el8.10.0+3898+7a25cb1a.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
- package podman-4:4.9.4-13.module_el8.10.0+3901+4b80ecd7.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
- package podman-4:4.9.4-3.module_el8.10.0+3858+6ad51f9f.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
- package podman-4:4.9.4-4.module_el8.10.0+3862+c5a22a8d.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from @System
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from @System
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-1.module_el8.10.0+3858+6ad51f9f.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-1.module_el8.10.0+3858+6ad51f9f.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-4.module_el8.10.0+3876+e55593a8.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-4.module_el8.10.0+3876+e55593a8.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-5.module_el8.10.0+3901+4b80ecd7.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-5.module_el8.10.0+3901+4b80ecd7.x86_64 from appstream
- 冲突的请求
- package runc-1.0.0-66.rc10.module_el8.5.0+2635+e4386a39.x86_64 from appstream is filtered out by modular filtering
- package runc-1.0.0-73.rc95.module_el8.7.0+3406+a17c4180.x86_64 from appstream is filtered out by modular filtering
- package runc-1:1.1.12-1.module_el8.10.0+3846+c31e1972.x86_64 from appstream is filtered out by modular filtering
问题 2: 安装的软件包的问题 containers-common-2:1-81.module_el8.10.0+3792+03eaed9c.x86_64
- package containers-common-2:1-81.module_el8.10.0+3792+03eaed9c.x86_64 from @System requires runc, but none of the providers can be installed
- package containers-common-2:1-81.module_el8.10.0+3792+03eaed9c.x86_64 from appstream requires runc, but none of the providers can be installed
- package containers-common-2:1-81.module_el8.10.0+3858+6ad51f9f.x86_64 from appstream requires runc, but none of the providers can be installed
- package containers-common-2:1-82.module_el8.10.0+3876+e55593a8.x86_64 from appstream requires runc, but none of the providers can be installed
- package containers-common-2:1-82.module_el8.10.0+3901+4b80ecd7.x86_64 from appstream requires runc, but none of the providers can be installed
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from @System
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from @System
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-1.module_el8.10.0+3858+6ad51f9f.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-1.module_el8.10.0+3858+6ad51f9f.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-4.module_el8.10.0+3876+e55593a8.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-4.module_el8.10.0+3876+e55593a8.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-5.module_el8.10.0+3901+4b80ecd7.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-5.module_el8.10.0+3901+4b80ecd7.x86_64 from appstream
- package docker-ce-3:26.1.3-1.el8.x86_64 from @commandline requires containerd.io >= 1.6.24, but none of the providers can be installed
- 冲突的请求
- package runc-1.0.0-56.rc5.dev.git2abd837.module_el8.3.0+2044+12421f43.x86_64 from appstream is filtered out by modular filtering
- package runc-1.0.0-66.rc10.module_el8.5.0+2635+e4386a39.x86_64 from appstream is filtered out by modular filtering
- package runc-1.0.0-73.rc95.module_el8.7.0+3406+a17c4180.x86_64 from appstream is filtered out by modular filtering
- package runc-1:1.1.12-1.module_el8.10.0+3846+c31e1972.x86_64 from appstream is filtered out by modular filtering
问题 3: 安装的软件包的问题 buildah-2:1.33.7-1.module_el8.10.0+3845+87b84552.x86_64
- package buildah-2:1.33.7-1.module_el8.10.0+3845+87b84552.x86_64 from @System requires runc >= 1.0.0-26, but none of the providers can be installed
- package buildah-2:1.33.7-1.module_el8.10.0+3845+87b84552.x86_64 from appstream requires runc >= 1.0.0-26, but none of the providers can be installed
- package buildah-2:1.33.7-2.module_el8.10.0+3858+6ad51f9f.x86_64 from appstream requires runc >= 1.0.0-26, but none of the providers can be installed
- package buildah-2:1.33.8-1.module_el8.10.0+3862+c5a22a8d.x86_64 from appstream requires runc >= 1.0.0-26, but none of the providers can be installed
- package buildah-2:1.33.8-4.module_el8.10.0+3876+e55593a8.x86_64 from appstream requires runc >= 1.0.0-26, but none of the providers can be installed
- package buildah-2:1.33.8-4.module_el8.10.0+3901+4b80ecd7.x86_64 from appstream requires runc >= 1.0.0-26, but none of the providers can be installed
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from @System
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from @System
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-1.module_el8.10.0+3858+6ad51f9f.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-1.module_el8.10.0+3858+6ad51f9f.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-4.module_el8.10.0+3876+e55593a8.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-4.module_el8.10.0+3876+e55593a8.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline conflicts with runc provided by runc-1:1.1.12-5.module_el8.10.0+3901+4b80ecd7.x86_64 from appstream
- package containerd.io-1.6.32-3.1.el8.x86_64 from @commandline obsoletes runc provided by runc-1:1.1.12-5.module_el8.10.0+3901+4b80ecd7.x86_64 from appstream
- package docker-ce-3:26.1.3-1.el8.x86_64 from @commandline requires containerd.io >= 1.6.24, but none of the providers can be installed
- package docker-ce-rootless-extras-26.1.3-1.el8.x86_64 from @commandline requires docker-ce, but none of the providers can be installed
- 冲突的请求
- package runc-1.0.0-56.rc5.dev.git2abd837.module_el8.3.0+2044+12421f43.x86_64 from appstream is filtered out by modular filtering
- package runc-1.0.0-66.rc10.module_el8.5.0+2635+e4386a39.x86_64 from appstream is filtered out by modular filtering
- package runc-1.0.0-73.rc95.module_el8.7.0+3406+a17c4180.x86_64 from appstream is filtered out by modular filtering
- package runc-1:1.1.12-1.module_el8.10.0+3846+c31e1972.x86_64 from appstream is filtered out by modular filtering
(尝试在命令行中添加 '--allowerasing' 来替换冲突的软件包 或 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选)
[root@almalinux docker-ce]# systemctl status podman
● podman.service - Podman API Service
Loaded: loaded (/usr/lib/systemd/system/podman.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:podman-system-service(1)
参数如下:
--allowerasing 替换冲突的软件包
--nobest 不只使用软件包的最佳候选
这次下载依赖包成功了,貌似就一个依赖包 libcgroup。
[root@almalinux docker-ce]# yum install -y ./*.rpm --downloadonly --downloaddir=./ --allowerasing --nobest
上次元数据过期检查:0:03:45 前,执行于 2024年10月22日 星期二 10时42分32秒。
依赖关系解决。
==================================================================================================================================================================================================================
软件包 架构 版本 仓库 大小
==================================================================================================================================================================================================================
安装:
containerd.io x86_64 1.6.32-3.1.el8 @commandline 35 M
替换 runc.x86_64 1:1.1.12-1.module_el8.10.0+3845+87b84552
docker-buildx-plugin x86_64 0.14.0-1.el8 @commandline 14 M
docker-ce x86_64 3:26.1.3-1.el8 @commandline 27 M
docker-ce-cli x86_64 1:26.1.3-1.el8 @commandline 7.8 M
docker-ce-rootless-extras x86_64 26.1.3-1.el8 @commandline 5.0 M
docker-compose-plugin x86_64 2.27.0-1.el8 @commandline 13 M
docker-scan-plugin x86_64 0.23.0-3.el8 @commandline 3.8 M
安装依赖关系:
libcgroup x86_64 0.41-19.el8 baseos 69 k
移除依赖的软件包:
buildah x86_64 2:1.33.7-1.module_el8.10.0+3845+87b84552 @AppStream 31 M
cockpit-podman noarch 84.1-1.module_el8.10.0+3792+03eaed9c @AppStream 682 k
containers-common x86_64 2:1-81.module_el8.10.0+3792+03eaed9c @AppStream 580 k
podman x86_64 4:4.9.4-1.module_el8.10.0+3845+87b84552 @AppStream 52 M
podman-catatonit x86_64 4:4.9.4-1.module_el8.10.0+3845+87b84552 @AppStream 794 k
事务概要
==================================================================================================================================================================================================================
安装 8 软件包
移除 5 软件包
总计:106 M
总下载:69 k
YUM将仅会从事务下载软件包。
下载软件包:
libcgroup-0.41-19.el8.x86_64.rpm 497 kB/s | 69 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计 60 kB/s | 69 kB 00:01
完毕!
下载的软件包保存在缓存中,直到下次成功执行事务。
您可以通过执行 'yum clean packages' 删除软件包缓存。
[root@almalinux docker-ce]# ls -ltr
总用量 108800
-rw-r--r--. 1 root root 37048204 10月 22 10:37 containerd.io-1.6.32-3.1.el8.x86_64.rpm
-rw-r--r--. 1 root root 14279736 10月 22 10:38 docker-buildx-plugin-0.14.0-1.el8.x86_64.rpm
-rw-r--r--. 1 root root 8181560 10月 22 10:38 docker-ce-cli-26.1.3-1.el8.x86_64.rpm
-rw-r--r--. 1 root root 5210852 10月 22 10:38 docker-ce-rootless-extras-26.1.3-1.el8.x86_64.rpm
-rw-r--r--. 1 root root 28542392 10月 22 10:38 docker-ce-26.1.3-1.el8.x86_64.rpm
-rw-r--r--. 1 root root 14046812 10月 22 10:38 docker-compose-plugin-2.27.0-1.el8.x86_64.rpm
-rw-r--r--. 1 root root 4010384 10月 22 10:38 docker-scan-plugin-0.23.0-3.el8.x86_64.rpm
-rw-r--r--. 1 root root 71048 10月 22 10:46 libcgroup-0.41-19.el8.x86_64.rpm
安装,安装的过程会删除一些冲突的Podman组件:
[root@almalinux docker-ce]# yum install -y ./*.rpm --allowerasing
上次元数据过期检查:0:04:32 前,执行于 2024年10月22日 星期二 10时42分32秒。
依赖关系解决。
==================================================================================================================================================================================================================
软件包 架构 版本 仓库 大小
==================================================================================================================================================================================================================
安装:
containerd.io x86_64 1.6.32-3.1.el8 @commandline 35 M
替换 runc.x86_64 1:1.1.12-1.module_el8.10.0+3845+87b84552
docker-buildx-plugin x86_64 0.14.0-1.el8 @commandline 14 M
docker-ce x86_64 3:26.1.3-1.el8 @commandline 27 M
docker-ce-cli x86_64 1:26.1.3-1.el8 @commandline 7.8 M
docker-ce-rootless-extras x86_64 26.1.3-1.el8 @commandline 5.0 M
docker-compose-plugin x86_64 2.27.0-1.el8 @commandline 13 M
docker-scan-plugin x86_64 0.23.0-3.el8 @commandline 3.8 M
libcgroup x86_64 0.41-19.el8 @commandline 69 k
移除依赖的软件包:
buildah x86_64 2:1.33.7-1.module_el8.10.0+3845+87b84552 @AppStream 31 M
cockpit-podman noarch 84.1-1.module_el8.10.0+3792+03eaed9c @AppStream 682 k
containers-common x86_64 2:1-81.module_el8.10.0+3792+03eaed9c @AppStream 580 k
podman x86_64 4:4.9.4-1.module_el8.10.0+3845+87b84552 @AppStream 52 M
podman-catatonit x86_64 4:4.9.4-1.module_el8.10.0+3845+87b84552 @AppStream 794 k
事务概要
==================================================================================================================================================================================================================
安装 8 软件包
移除 5 软件包
总计:106 M
下载软件包:
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中 : 1/1
运行脚本: docker-compose-plugin-2.27.0-1.el8.x86_64 1/1
安装 : docker-compose-plugin-2.27.0-1.el8.x86_64 1/14
运行脚本: docker-compose-plugin-2.27.0-1.el8.x86_64 1/14
运行脚本: libcgroup-0.41-19.el8.x86_64 2/14
安装 : libcgroup-0.41-19.el8.x86_64 2/14
运行脚本: libcgroup-0.41-19.el8.x86_64 2/14
安装 : docker-scan-plugin-0.23.0-3.el8.x86_64 3/14
运行脚本: docker-scan-plugin-0.23.0-3.el8.x86_64 3/14
安装 : docker-buildx-plugin-0.14.0-1.el8.x86_64 4/14
运行脚本: docker-buildx-plugin-0.14.0-1.el8.x86_64 4/14
安装 : docker-ce-cli-1:26.1.3-1.el8.x86_64 5/14
运行脚本: docker-ce-cli-1:26.1.3-1.el8.x86_64 5/14
安装 : containerd.io-1.6.32-3.1.el8.x86_64 6/14
运行脚本: containerd.io-1.6.32-3.1.el8.x86_64 6/14
安装 : docker-ce-rootless-extras-26.1.3-1.el8.x86_64 7/14
运行脚本: docker-ce-rootless-extras-26.1.3-1.el8.x86_64 7/14
安装 : docker-ce-3:26.1.3-1.el8.x86_64 8/14
运行脚本: docker-ce-3:26.1.3-1.el8.x86_64 8/14
删除 : buildah-2:1.33.7-1.module_el8.10.0+3845+87b84552.x86_64 9/14
删除 : cockpit-podman-84.1-1.module_el8.10.0+3792+03eaed9c.noarch 10/14
运行脚本: podman-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64 11/14
删除 : podman-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64 11/14
运行脚本: podman-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64 11/14
删除 : containers-common-2:1-81.module_el8.10.0+3792+03eaed9c.x86_64 12/14
删除 : podman-catatonit-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64 13/14
运行脚本: podman-catatonit-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64 13/14
废弃 : runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 14/14
运行脚本: runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 14/14
验证 : containerd.io-1.6.32-3.1.el8.x86_64 1/14
验证 : runc-1:1.1.12-1.module_el8.10.0+3845+87b84552.x86_64 2/14
验证 : docker-buildx-plugin-0.14.0-1.el8.x86_64 3/14
验证 : docker-ce-3:26.1.3-1.el8.x86_64 4/14
验证 : docker-ce-cli-1:26.1.3-1.el8.x86_64 5/14
验证 : docker-ce-rootless-extras-26.1.3-1.el8.x86_64 6/14
验证 : docker-compose-plugin-2.27.0-1.el8.x86_64 7/14
验证 : docker-scan-plugin-0.23.0-3.el8.x86_64 8/14
验证 : libcgroup-0.41-19.el8.x86_64 9/14
验证 : buildah-2:1.33.7-1.module_el8.10.0+3845+87b84552.x86_64 10/14
验证 : cockpit-podman-84.1-1.module_el8.10.0+3792+03eaed9c.noarch 11/14
验证 : containers-common-2:1-81.module_el8.10.0+3792+03eaed9c.x86_64 12/14
验证 : podman-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64 13/14
验证 : podman-catatonit-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64 14/14
已安装:
containerd.io-1.6.32-3.1.el8.x86_64 docker-buildx-plugin-0.14.0-1.el8.x86_64 docker-ce-3:26.1.3-1.el8.x86_64 docker-ce-cli-1:26.1.3-1.el8.x86_64 docker-ce-rootless-extras-26.1.3-1.el8.x86_64
docker-compose-plugin-2.27.0-1.el8.x86_64 docker-scan-plugin-0.23.0-3.el8.x86_64 libcgroup-0.41-19.el8.x86_64
已移除:
buildah-2:1.33.7-1.module_el8.10.0+3845+87b84552.x86_64 cockpit-podman-84.1-1.module_el8.10.0+3792+03eaed9c.noarch containers-common-2:1-81.module_el8.10.0+3792+03eaed9c.x86_64
podman-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64 podman-catatonit-4:4.9.4-1.module_el8.10.0+3845+87b84552.x86_64
完毕!
启动和查看docker服务状态
[root@almalinux docker-ce]# systemctl start docker.socket docker.service containerd.service
[root@almalinux docker-ce]# systemctl status docker.socket docker.service containerd.service
● docker.socket - Docker Socket for the API
Loaded: loaded (/usr/lib/systemd/system/docker.socket; disabled; vendor preset: disabled)
Active: active (running) since Tue 2024-10-22 10:47:43 CST; 6s ago
Listen: /run/docker.sock (Stream)
Tasks: 0 (limit: 35776)
Memory: 4.0K
CGroup: /system.slice/docker.socket
10月 22 10:47:43 almalinux systemd[1]: Starting Docker Socket for the API.
10月 22 10:47:43 almalinux systemd[1]: Listening on Docker Socket for the API.
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2024-10-22 10:47:45 CST; 4s ago
Docs: https://docs.docker.com
Main PID: 39748 (dockerd)
Tasks: 8
Memory: 31.8M
CGroup: /system.slice/docker.service
└─39748 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
10月 22 10:47:43 almalinux systemd[1]: Starting Docker Application Container Engine...
10月 22 10:47:43 almalinux dockerd[39748]: time="2024-10-22T10:47:43.681613339+08:00" level=info msg="Starting up"
10月 22 10:47:43 almalinux dockerd[39748]: time="2024-10-22T10:47:43.987497721+08:00" level=info msg="Loading containers: start."
10月 22 10:47:45 almalinux dockerd[39748]: time="2024-10-22T10:47:45.139987591+08:00" level=info msg="Firewalld: interface docker0 already part of docker zone, returning"
10月 22 10:47:45 almalinux dockerd[39748]: time="2024-10-22T10:47:45.338208953+08:00" level=info msg="Loading containers: done."
10月 22 10:47:45 almalinux dockerd[39748]: time="2024-10-22T10:47:45.359978552+08:00" level=info msg="Docker daemon" commit=8e96db1 containerd-snapshotter=false storage-driver=overlay2 version=26.1.3
10月 22 10:47:45 almalinux dockerd[39748]: time="2024-10-22T10:47:45.360274808+08:00" level=info msg="Daemon has completed initialization"
10月 22 10:47:45 almalinux dockerd[39748]: time="2024-10-22T10:47:45.414090737+08:00" level=info msg="API listen on /run/docker.sock"
10月 22 10:47:45 almalinux systemd[1]: Started Docker Application Container Engine.
● containerd.service - containerd container runtime
Loaded: loaded (/usr/lib/systemd/system/containerd.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2024-10-22 10:47:43 CST; 6s ago
Docs: https://containerd.io
Process: 39736 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
Main PID: 39739 (containerd)
Tasks: 8
Memory: 14.7M
CGroup: /system.slice/containerd.service
└─39739 /usr/bin/containerd
10月 22 10:47:43 almalinux containerd[39739]: time="2024-10-22T10:47:43.592991719+08:00" level=info msg="loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." type=io.containerd.tracing.processor.v1
10月 22 10:47:43 almalinux containerd[39739]: time="2024-10-22T10:47:43.593039328+08:00" level=info msg="skip loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." error="skip plugin: tracing endpoint>
10月 22 10:47:43 almalinux containerd[39739]: time="2024-10-22T10:47:43.593050302+08:00" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
10月 22 10:47:43 almalinux containerd[39739]: time="2024-10-22T10:47:43.593060301+08:00" level=info msg="skip loading plugin \"io.containerd.internal.v1.tracing\"..." error="skip plugin: tracing endpoint not c>
10月 22 10:47:43 almalinux containerd[39739]: time="2024-10-22T10:47:43.593086352+08:00" level=info msg="loading plugin \"io.containerd.internal.v1.restart\"..." type=io.containerd.internal.v1
10月 22 10:47:43 almalinux containerd[39739]: time="2024-10-22T10:47:43.593124064+08:00" level=info msg="loading plugin \"io.containerd.grpc.v1.healthcheck\"..." type=io.containerd.grpc.v1
10月 22 10:47:43 almalinux containerd[39739]: time="2024-10-22T10:47:43.594331818+08:00" level=info msg=serving... address=/run/containerd/containerd.sock.ttrpc
10月 22 10:47:43 almalinux containerd[39739]: time="2024-10-22T10:47:43.594624797+08:00" level=info msg=serving... address=/run/containerd/containerd.sock
10月 22 10:47:43 almalinux containerd[39739]: time="2024-10-22T10:47:43.595753755+08:00" level=info msg="containerd successfully booted in 0.046469s"
10月 22 10:47:43 almalinux systemd[1]: Started containerd container runtime.
查看Docker的版本信息:
[root@almalinux docker-ce]# docker version
Client: Docker Engine - Community
Version: 26.1.3
API version: 1.45
Go version: go1.21.10
Git commit: b72abbb
Built: Thu May 16 08:34:39 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 26.1.3
API version: 1.45 (minimum version 1.24)
Go version: go1.21.10
Git commit: 8e96db1
Built: Thu May 16 08:33:34 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.32
GitCommit: 8b3b7ca2e5ce38e8f31a34f35b2b68ceb8470d89
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
[root@almalinux docker-ce]# docker info
Client: Docker Engine - Community
Version: 26.1.3
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.14.0
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.27.0
Path: /usr/libexec/docker/cli-plugins/docker-compose
scan: Docker Scan (Docker Inc.)
Version: v0.23.0
Path: /usr/libexec/docker/cli-plugins/docker-scan
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 26.1.3
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8b3b7ca2e5ce38e8f31a34f35b2b68ceb8470d89
runc version: v1.1.12-0-g51d5e94
init version: de40ad0
Security Options:
seccomp
Profile: builtin
Kernel Version: 4.18.0-553.el8_10.x86_64
Operating System: AlmaLinux 8.10 (Cerulean Leopard)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 5.517GiB
Name: almalinux
ID: 12fe8482-650a-4f25-9cd7-21eb66cac3f9
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
至此,在AlmaLinux 8.10上安装Docker-ce成功。