官网下载地址(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 M
docker-ce x86_64 3:24.0.6-1.el7 /docker-ce-24.0.6-1.el7.x86_64 92 M
docker-ce-cli x86_64 1:24.0.6-1.el7 /docker-ce-cli-24.0.6-1.el7.x86_64 35 M
docker-ce-rootless-extras x86_64 24.0.6-1.el7 /docker-ce-rootless-extras-24.0.6-1.el7.x86_64 19 M
docker-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服务文章来源:https://www.toymoban.com/news/detail-723170.html
[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 API
Loaded: loaded (/usr/lib/systemd/system/docker.socket; disabled; vendor preset: disabled)
Active: active (running) since 三 2023-09-06 14:41:22 CST; 9s ago
Listen: /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 Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since 三 2023-09-06 14:41:26 CST; 5s ago
Docs: https://docs.docker.com
Main PID: 1960 (dockerd)
Tasks: 45
Memory: 57.2M
CGroup: /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 1157
9月 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 runtime
Loaded: loaded (/usr/lib/systemd/system/containerd.service; disabled; vendor preset: disabled)
Active: active (running) since 三 2023-09-06 14:41:22 CST; 9s ago
Docs: https://containerd.io
Process: 1944 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
Main PID: 1948 (containerd)
Tasks: 21
Memory: 27.4M
CGroup: /system.slice/containerd.service
├─1948 /usr/bin/containerd
└─2230 /usr/bin/containerd-shim-runc-v2 -namespace moby -id 5b2a868ec0878f88e820fceb4f53bbbe2aacf92417e9279a55ad48d9a56caceb -address /run/containerd/containerd.sock
9月 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的版本号:文章来源地址https://www.toymoban.com/news/detail-723170.html
[root@www docker-ce]# docker version
Client: Docker Engine - Community
Version: 24.0.6
API version: 1.43
Go version: go1.20.7
Git commit: ed223bc
Built: Mon Sep 4 12:35:25 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.6
API version: 1.43 (minimum version 1.12)
Go version: go1.20.7
Git commit: 1a79695
Built: Mon Sep 4 12:34:28 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.22
GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca
runc:
Version: 1.1.8
GitCommit: v1.1.8-0-g82f18fe
docker-init:
Version: 0.19.0
GitCommit: de40ad0
[root@www docker-ce]# docker info
Client: Docker Engine - Community
Version: 24.0.6
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.21.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: 2
Running: 1
Paused: 0
Stopped: 1
Images: 7
Server Version: 24.0.6
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: systemd
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8165feabfdfe38c65b599c4993d227328c231fca
runc version: v1.1.8-0-g82f18fe
init version: de40ad0
Security Options:
seccomp
Profile: builtin
Kernel Version: 3.10.0-1160.92.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 5.808GiB
Name: www.cnskylee.com
ID: 2b294321-50a2-4418-bf52-5cca14285865
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://b9pmyelo.mirror.aliyuncs.com/
Live Restore Enabled: false
到了这里,关于【DockerCE】Docker-CE 24.0.6正式版发布的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!