【Docker】在AlmaLinux 8.10系统中安装Docker-ce过程分享
随着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 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 ServiceLoaded: 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+87b84552docker-buildx-plugin x86_64 0.14.0-1.el8 @commandline 14 Mdocker-ce x86_64 3:26.1.3-1.el8 @commandline 27 Mdocker-ce-cli x86_64 1:26.1.3-1.el8 @commandline 7.8 Mdocker-ce-rootless-extras x86_64 26.1.3-1.el8 @commandline 5.0 Mdocker-compose-plugin x86_64 2.27.0-1.el8 @commandline 13 Mdocker-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 Mcockpit-podman noarch 84.1-1.module_el8.10.0+3792+03eaed9c @AppStream 682 kcontainers-common x86_64 2:1-81.module_el8.10.0+3792+03eaed9c @AppStream 580 kpodman x86_64 4:4.9.4-1.module_el8.10.0+3845+87b84552 @AppStream 52 Mpodman-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+87b84552docker-buildx-plugin x86_64 0.14.0-1.el8 @commandline 14 Mdocker-ce x86_64 3:26.1.3-1.el8 @commandline 27 Mdocker-ce-cli x86_64 1:26.1.3-1.el8 @commandline 7.8 Mdocker-ce-rootless-extras x86_64 26.1.3-1.el8 @commandline 5.0 Mdocker-compose-plugin x86_64 2.27.0-1.el8 @commandline 13 Mdocker-scan-plugin x86_64 0.23.0-3.el8 @commandline 3.8 Mlibcgroup 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 Mcockpit-podman noarch 84.1-1.module_el8.10.0+3792+03eaed9c @AppStream 682 kcontainers-common x86_64 2:1-81.module_el8.10.0+3792+03eaed9c @AppStream 580 kpodman x86_64 4:4.9.4-1.module_el8.10.0+3845+87b84552 @AppStream 52 Mpodman-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 APILoaded: loaded (/usr/lib/systemd/system/docker.socket; disabled; vendor preset: disabled)Active: active (running) since Tue 2024-10-22 10:47:43 CST; 6s agoListen: /run/docker.sock (Stream)Tasks: 0 (limit: 35776)Memory: 4.0KCGroup: /system.slice/docker.socket10月 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 EngineLoaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)Active: active (running) since Tue 2024-10-22 10:47:45 CST; 4s agoDocs: https://docs.docker.comMain PID: 39748 (dockerd)Tasks: 8Memory: 31.8MCGroup: /system.slice/docker.service└─39748 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock10月 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 runtimeLoaded: loaded (/usr/lib/systemd/system/containerd.service; disabled; vendor preset: disabled)Active: active (running) since Tue 2024-10-22 10:47:43 CST; 6s agoDocs: https://containerd.ioProcess: 39736 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)Main PID: 39739 (containerd)Tasks: 8Memory: 14.7MCGroup: /system.slice/containerd.service└─39739 /usr/bin/containerd10月 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 - CommunityVersion: 26.1.3API version: 1.45Go version: go1.21.10Git commit: b72abbbBuilt: Thu May 16 08:34:39 2024OS/Arch: linux/amd64Context: defaultServer: Docker Engine - CommunityEngine:Version: 26.1.3API version: 1.45 (minimum version 1.24)Go version: go1.21.10Git commit: 8e96db1Built: Thu May 16 08:33:34 2024OS/Arch: linux/amd64Experimental: falsecontainerd:Version: 1.6.32GitCommit: 8b3b7ca2e5ce38e8f31a34f35b2b68ceb8470d89runc:Version: 1.1.12GitCommit: v1.1.12-0-g51d5e94docker-init:Version: 0.19.0GitCommit: de40ad0
[root@almalinux docker-ce]# docker info
Client: Docker Engine - CommunityVersion: 26.1.3Context: defaultDebug Mode: falsePlugins:buildx: Docker Buildx (Docker Inc.)Version: v0.14.0Path: /usr/libexec/docker/cli-plugins/docker-buildxcompose: Docker Compose (Docker Inc.)Version: v2.27.0Path: /usr/libexec/docker/cli-plugins/docker-composescan: Docker Scan (Docker Inc.)Version: v0.23.0Path: /usr/libexec/docker/cli-plugins/docker-scanServer:Containers: 0Running: 0Paused: 0Stopped: 0Images: 0Server Version: 26.1.3Storage Driver: overlay2Backing Filesystem: xfsSupports d_type: trueUsing metacopy: falseNative Overlay Diff: trueuserxattr: falseLogging Driver: json-fileCgroup Driver: cgroupfsCgroup Version: 1Plugins:Volume: localNetwork: bridge host ipvlan macvlan null overlayLog: awslogs fluentd gcplogs gelf journald json-file local splunk syslogSwarm: inactiveRuntimes: io.containerd.runc.v2 runcDefault Runtime: runcInit Binary: docker-initcontainerd version: 8b3b7ca2e5ce38e8f31a34f35b2b68ceb8470d89runc version: v1.1.12-0-g51d5e94init version: de40ad0Security Options:seccompProfile: builtinKernel Version: 4.18.0-553.el8_10.x86_64Operating System: AlmaLinux 8.10 (Cerulean Leopard)OSType: linuxArchitecture: x86_64CPUs: 2Total Memory: 5.517GiBName: almalinuxID: 12fe8482-650a-4f25-9cd7-21eb66cac3f9Docker Root Dir: /var/lib/dockerDebug Mode: falseExperimental: falseInsecure Registries:127.0.0.0/8Live Restore Enabled: false
至此,在AlmaLinux 8.10上安装Docker-ce成功。