官网下载地址(For RHEL/CentOS 7.9):
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
相对于24.0.5版本,本次24.0.6版本更新的rpm包有 5 个,使用目录对比软件对比的结果如下:
在Linux目录下的文件列表如下:
[root@www docker-ce]# ls -ltr
总用量 114768
-rw-r--r-- 1 root root 32880 7月 4 2014 python-IPy-0.75-6.el7.noarch.rpm
-rw-r--r-- 1 root root 302068 11月 12 2018 checkpolicy-2.5-8.el7.x86_64.rpm
-rw-r--r-- 1 root root 115284 11月 12 2018 libsemanage-python-2.5-14.el7.x86_64.rpm
-rw-r--r-- 1 root root 635184 11月 12 2018 setools-libs-3.3.8-4.el7.x86_64.rpm
-rw-r--r-- 1 root root 78256 8月 23 2019 audit-libs-python-2.8.5-4.el7.x86_64.rpm
-rw-r--r-- 1 root root 67720 8月 23 2019 libcgroup-0.41-21.el7.x86_64.rpm
-rw-r--r-- 1 root root 468316 4月 4 2020 policycoreutils-python-2.5-34.el7.x86_64.rpm
-rw-r--r-- 1 root root 55796 4月 29 2020 fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm
-rw-r--r-- 1 root root 83764 4月 29 2020 fuse3-libs-3.6.1-4.el7.x86_64.rpm
-rw-r--r-- 1 root root 83452 4月 29 2020 slirp4netns-0.4.3-4.el7_8.x86_64.rpm
-rw-r--r-- 1 root root 40816 7月 6 2020 container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm
-rw-r--r-- 1 root root 4006940 4月 6 07:43 docker-scan-plugin-0.23.0-3.el7.x86_64.rpm
-rw-r--r-- 1 root root 13706740 7月 25 08:02 docker-buildx-plugin-0.11.2-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 13430340 9月 6 14:16 docker-compose-plugin-2.21.0-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 9543196 9月 6 14:16 docker-ce-rootless-extras-24.0.6-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 14038076 9月 6 14:16 docker-ce-cli-24.0.6-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 25439248 9月 6 14:16 docker-ce-24.0.6-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 35355976 9月 6 14:21 containerd.io-1.6.22-3.1.el7.x86_64.rpm
升级安装:
[root@www docker-ce]# yum install -y *.rpm
已加载插件:fastestmirror, langpacks
正在检查 audit-libs-python-2.8.5-4.el7.x86_64.rpm: audit-libs-python-2.8.5-4.el7.x86_64
audit-libs-python-2.8.5-4.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 checkpolicy-2.5-8.el7.x86_64.rpm: checkpolicy-2.5-8.el7.x86_64
checkpolicy-2.5-8.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 containerd.io-1.6.22-3.1.el7.x86_64.rpm: containerd.io-1.6.22-3.1.el7.x86_64
containerd.io-1.6.22-3.1.el7.x86_64.rpm 将作为 containerd.io-1.6.21-3.1.el7.x86_64 的更新
正在检查 container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch
container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm:不更新已安装的软件包。
正在检查 docker-buildx-plugin-0.11.2-1.el7.x86_64.rpm: docker-buildx-plugin-0.11.2-1.el7.x86_64
docker-buildx-plugin-0.11.2-1.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 docker-ce-24.0.6-1.el7.x86_64.rpm: 3:docker-ce-24.0.6-1.el7.x86_64
docker-ce-24.0.6-1.el7.x86_64.rpm 将作为 3:docker-ce-24.0.5-1.el7.x86_64 的更新
正在检查 docker-ce-cli-24.0.6-1.el7.x86_64.rpm: 1:docker-ce-cli-24.0.6-1.el7.x86_64
docker-ce-cli-24.0.6-1.el7.x86_64.rpm 将作为 1:docker-ce-cli-24.0.5-1.el7.x86_64 的更新
正在检查 docker-ce-rootless-extras-24.0.6-1.el7.x86_64.rpm: docker-ce-rootless-extras-24.0.6-1.el7.x86_64
docker-ce-rootless-extras-24.0.6-1.el7.x86_64.rpm 将作为 docker-ce-rootless-extras-24.0.5-1.el7.x86_64 的更新
正在检查 docker-compose-plugin-2.21.0-1.el7.x86_64.rpm: docker-compose-plugin-2.21.0-1.el7.x86_64
docker-compose-plugin-2.21.0-1.el7.x86_64.rpm 将作为 docker-compose-plugin-2.20.2-1.el7.x86_64 的更新
正在检查 docker-scan-plugin-0.23.0-3.el7.x86_64.rpm: docker-scan-plugin-0.23.0-3.el7.x86_64
docker-scan-plugin-0.23.0-3.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 fuse3-libs-3.6.1-4.el7.x86_64.rpm: fuse3-libs-3.6.1-4.el7.x86_64
fuse3-libs-3.6.1-4.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm: fuse-overlayfs-0.7.2-6.el7_8.x86_64
fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm:不更新已安装的软件包。
正在检查 libcgroup-0.41-21.el7.x86_64.rpm: libcgroup-0.41-21.el7.x86_64
libcgroup-0.41-21.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 libsemanage-python-2.5-14.el7.x86_64.rpm: libsemanage-python-2.5-14.el7.x86_64
libsemanage-python-2.5-14.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 policycoreutils-python-2.5-34.el7.x86_64.rpm: policycoreutils-python-2.5-34.el7.x86_64
policycoreutils-python-2.5-34.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 python-IPy-0.75-6.el7.noarch.rpm: python-IPy-0.75-6.el7.noarch
python-IPy-0.75-6.el7.noarch.rpm:不更新已安装的软件包。
正在检查 setools-libs-3.3.8-4.el7.x86_64.rpm: setools-libs-3.3.8-4.el7.x86_64
setools-libs-3.3.8-4.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 slirp4netns-0.4.3-4.el7_8.x86_64.rpm: slirp4netns-0.4.3-4.el7_8.x86_64
slirp4netns-0.4.3-4.el7_8.x86_64.rpm:不更新已安装的软件包。
正在解决依赖关系
--> 正在检查事务
---> 软件包 containerd.io.x86_64.0.1.6.21-3.1.el7 将被 升级
---> 软件包 containerd.io.x86_64.0.1.6.22-3.1.el7 将被 更新
---> 软件包 docker-ce.x86_64.3.24.0.5-1.el7 将被 升级
---> 软件包 docker-ce.x86_64.3.24.0.6-1.el7 将被 更新
---> 软件包 docker-ce-cli.x86_64.1.24.0.5-1.el7 将被 升级
---> 软件包 docker-ce-cli.x86_64.1.24.0.6-1.el7 将被 更新
---> 软件包 docker-ce-rootless-extras.x86_64.0.24.0.5-1.el7 将被 升级
---> 软件包 docker-ce-rootless-extras.x86_64.0.24.0.6-1.el7 将被 更新
---> 软件包 docker-compose-plugin.x86_64.0.2.20.2-1.el7 将被 升级
---> 软件包 docker-compose-plugin.x86_64.0.2.21.0-1.el7 将被 更新
--> 解决依赖关系完成
base/7/x86_64 | 3.6 kB 00:00:00
elrepo | 3.0 kB 00:00:00
elrepo/primary_db | 356 kB 00:00:00
extras/7/x86_64 | 2.9 kB 00:00:00
updates/7/x86_64 | 2.9 kB 00:00:00
updates/7/x86_64/primary_db | 22 MB 00:00:10 依赖关系解决===============================================================================================================================================================================================================Package 架构 版本 源 大小
===============================================================================================================================================================================================================
正在更新:containerd.io x86_64 1.6.22-3.1.el7 /containerd.io-1.6.22-3.1.el7.x86_64 114 Mdocker-ce x86_64 3:24.0.6-1.el7 /docker-ce-24.0.6-1.el7.x86_64 92 Mdocker-ce-cli x86_64 1:24.0.6-1.el7 /docker-ce-cli-24.0.6-1.el7.x86_64 35 Mdocker-ce-rootless-extras x86_64 24.0.6-1.el7 /docker-ce-rootless-extras-24.0.6-1.el7.x86_64 19 Mdocker-compose-plugin x86_64 2.21.0-1.el7 /docker-compose-plugin-2.21.0-1.el7.x86_64 58 M事务概要
===============================================================================================================================================================================================================
升级 5 软件包总计:318 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在更新 : containerd.io-1.6.22-3.1.el7.x86_64 1/10 正在更新 : docker-compose-plugin-2.21.0-1.el7.x86_64 2/10 正在更新 : 1:docker-ce-cli-24.0.6-1.el7.x86_64 3/10 正在更新 : docker-ce-rootless-extras-24.0.6-1.el7.x86_64 4/10 正在更新 : 3:docker-ce-24.0.6-1.el7.x86_64 5/10 清理 : 3:docker-ce-24.0.5-1.el7.x86_64 6/10 清理 : docker-ce-rootless-extras-24.0.5-1.el7.x86_64 7/10 清理 : 1:docker-ce-cli-24.0.5-1.el7.x86_64 8/10 清理 : containerd.io-1.6.21-3.1.el7.x86_64 9/10 清理 : docker-compose-plugin-2.20.2-1.el7.x86_64 10/10 验证中 : docker-compose-plugin-2.21.0-1.el7.x86_64 1/10 验证中 : docker-ce-rootless-extras-24.0.6-1.el7.x86_64 2/10 验证中 : 3:docker-ce-24.0.6-1.el7.x86_64 3/10 验证中 : containerd.io-1.6.22-3.1.el7.x86_64 4/10 验证中 : 1:docker-ce-cli-24.0.6-1.el7.x86_64 5/10 验证中 : 3:docker-ce-24.0.5-1.el7.x86_64 6/10 验证中 : docker-compose-plugin-2.20.2-1.el7.x86_64 7/10 验证中 : containerd.io-1.6.21-3.1.el7.x86_64 8/10 验证中 : 1:docker-ce-cli-24.0.5-1.el7.x86_64 9/10 验证中 : docker-ce-rootless-extras-24.0.5-1.el7.x86_64 10/10 更新完毕:containerd.io.x86_64 0:1.6.22-3.1.el7 docker-ce.x86_64 3:24.0.6-1.el7 docker-ce-cli.x86_64 1:24.0.6-1.el7 docker-ce-rootless-extras.x86_64 0:24.0.6-1.el7 docker-compose-plugin.x86_64 0:2.21.0-1.el7 完毕!
启动docker服务
[root@www docker-ce]# systemctl start docker.socket docker.service containerd.service
[root@www 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 三 2023-09-06 14:41:22 CST; 9s agoListen: /run/docker.sock (Stream)9月 06 14:41:22 www.cnskylee.com systemd[1]: Starting Docker Socket for the API.
9月 06 14:41:22 www.cnskylee.com 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 三 2023-09-06 14:41:26 CST; 5s agoDocs: https://docs.docker.comMain PID: 1960 (dockerd)Tasks: 45Memory: 57.2MCGroup: /system.slice/docker.service├─1960 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock├─2182 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 1158 -container-ip 172.17.0.2 -container-port 1158├─2189 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 1158 -container-ip 172.17.0.2 -container-port 1158├─2206 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 1157 -container-ip 172.17.0.2 -container-port 1157└─2213 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 1157 -container-ip 172.17.0.2 -container-port 11579月 06 14:41:22 www.cnskylee.com systemd[1]: Starting Docker Application Container Engine...
9月 06 14:41:23 www.cnskylee.com dockerd[1960]: time="2023-09-06T14:41:23.101922312+08:00" level=info msg="Starting up"
9月 06 14:41:23 www.cnskylee.com dockerd[1960]: time="2023-09-06T14:41:23.988535544+08:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
9月 06 14:41:24 www.cnskylee.com dockerd[1960]: time="2023-09-06T14:41:24.780006722+08:00" level=info msg="Loading containers: start."
9月 06 14:41:25 www.cnskylee.com dockerd[1960]: time="2023-09-06T14:41:25.426847029+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon optio...d IP address"
9月 06 14:41:26 www.cnskylee.com dockerd[1960]: time="2023-09-06T14:41:26.521777146+08:00" level=info msg="Loading containers: done."
9月 06 14:41:26 www.cnskylee.com dockerd[1960]: time="2023-09-06T14:41:26.553905634+08:00" level=info msg="Docker daemon" commit=1a79695 graphdriver=overlay2 version=24.0.6
9月 06 14:41:26 www.cnskylee.com dockerd[1960]: time="2023-09-06T14:41:26.554184185+08:00" level=info msg="Daemon has completed initialization"
9月 06 14:41:26 www.cnskylee.com systemd[1]: Started Docker Application Container Engine.
9月 06 14:41:26 www.cnskylee.com dockerd[1960]: time="2023-09-06T14:41:26.835109713+08:00" level=info msg="API listen on /run/docker.sock"● containerd.service - containerd container runtimeLoaded: loaded (/usr/lib/systemd/system/containerd.service; disabled; vendor preset: disabled)Active: active (running) since 三 2023-09-06 14:41:22 CST; 9s agoDocs: https://containerd.ioProcess: 1944 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)Main PID: 1948 (containerd)Tasks: 21Memory: 27.4MCGroup: /system.slice/containerd.service├─1948 /usr/bin/containerd└─2230 /usr/bin/containerd-shim-runc-v2 -namespace moby -id 5b2a868ec0878f88e820fceb4f53bbbe2aacf92417e9279a55ad48d9a56caceb -address /run/containerd/containerd.sock9月 06 14:41:22 www.cnskylee.com containerd[1948]: time="2023-09-06T14:41:22.928650753+08:00" level=info msg="skip loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." error="no Op....processor.v1
9月 06 14:41:22 www.cnskylee.com containerd[1948]: time="2023-09-06T14:41:22.928660154+08:00" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
9月 06 14:41:22 www.cnskylee.com containerd[1948]: time="2023-09-06T14:41:22.928741968+08:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endp... skip plugin"
9月 06 14:41:22 www.cnskylee.com containerd[1948]: time="2023-09-06T14:41:22.929054831+08:00" level=info msg=serving... address=/run/containerd/containerd.sock.ttrpc
9月 06 14:41:22 www.cnskylee.com containerd[1948]: time="2023-09-06T14:41:22.929094674+08:00" level=info msg=serving... address=/run/containerd/containerd.sock
9月 06 14:41:22 www.cnskylee.com containerd[1948]: time="2023-09-06T14:41:22.929140391+08:00" level=info msg="containerd successfully booted in 0.114080s"
9月 06 14:41:25 www.cnskylee.com containerd[1948]: time="2023-09-06T14:41:25.883134079+08:00" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.ru...nerd.event.v1
9月 06 14:41:25 www.cnskylee.com containerd[1948]: time="2023-09-06T14:41:25.883286377+08:00" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd....d.internal.v1
9月 06 14:41:25 www.cnskylee.com containerd[1948]: time="2023-09-06T14:41:25.883311752+08:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2...nerd.ttrpc.v1
9月 06 14:41:25 www.cnskylee.com containerd[1948]: time="2023-09-06T14:41:25.883745197+08:00" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime....inerd.runc.v2
Hint: Some lines were ellipsized, use -l to show in full.
查看docker的版本号:
[root@www docker-ce]# docker version
Client: Docker Engine - CommunityVersion: 24.0.6API version: 1.43Go version: go1.20.7Git commit: ed223bcBuilt: Mon Sep 4 12:35:25 2023OS/Arch: linux/amd64Context: defaultServer: Docker Engine - CommunityEngine:Version: 24.0.6API version: 1.43 (minimum version 1.12)Go version: go1.20.7Git commit: 1a79695Built: Mon Sep 4 12:34:28 2023OS/Arch: linux/amd64Experimental: falsecontainerd:Version: 1.6.22GitCommit: 8165feabfdfe38c65b599c4993d227328c231fcarunc:Version: 1.1.8GitCommit: v1.1.8-0-g82f18fedocker-init:Version: 0.19.0GitCommit: de40ad0
[root@www docker-ce]# docker info
Client: Docker Engine - CommunityVersion: 24.0.6Context: defaultDebug Mode: falsePlugins:buildx: Docker Buildx (Docker Inc.)Version: v0.11.2Path: /usr/libexec/docker/cli-plugins/docker-buildxcompose: Docker Compose (Docker Inc.)Version: v2.21.0Path: /usr/libexec/docker/cli-plugins/docker-composescan: Docker Scan (Docker Inc.)Version: v0.23.0Path: /usr/libexec/docker/cli-plugins/docker-scanServer:Containers: 2Running: 1Paused: 0Stopped: 1Images: 7Server Version: 24.0.6Storage Driver: overlay2Backing Filesystem: xfsSupports d_type: trueUsing metacopy: falseNative Overlay Diff: trueuserxattr: falseLogging Driver: json-fileCgroup Driver: systemdCgroup Version: 1Plugins:Volume: localNetwork: bridge host ipvlan macvlan null overlayLog: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslogSwarm: inactiveRuntimes: io.containerd.runc.v2 runcDefault Runtime: runcInit Binary: docker-initcontainerd version: 8165feabfdfe38c65b599c4993d227328c231fcarunc version: v1.1.8-0-g82f18feinit version: de40ad0Security Options:seccompProfile: builtinKernel Version: 3.10.0-1160.92.1.el7.x86_64Operating System: CentOS Linux 7 (Core)OSType: linuxArchitecture: x86_64CPUs: 4Total Memory: 5.808GiBName: www.cnskylee.comID: 2b294321-50a2-4418-bf52-5cca14285865Docker Root Dir: /var/lib/dockerDebug Mode: falseExperimental: falseInsecure Registries:127.0.0.0/8Registry Mirrors:https://b9pmyelo.mirror.aliyuncs.com/Live Restore Enabled: false