官网下载地址(For RHEL/CentOS 7.9):
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
本次官方发布的rpm包只有 5 个,下载链接如下:
# docker-buildx-plugin-0.11.1
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-buildx-plugin-0.11.1-1.el7.x86_64.rpm
# docker-ce-24.0.3
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-24.0.3-1.el7.x86_64.rpm
# docker-ce-cli-24.0.3
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-24.0.3-1.el7.x86_64.rpm
# docker-ce-rootless-extras-24.0.3
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-rootless-extras-24.0.3-1.el7.x86_64.rpm
# docker-compose-plugin-2.19.1
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-compose-plugin-2.19.1-1.el7.x86_64.rpm
完整的离线安装包(包含依赖包)清单如下:
[root@www docker-ce-24.0.3]# ls -ltr
总用量 113864
-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 35297172 5月 9 07:53 containerd.io-1.6.21-3.1.el7.x86_64.rpm
-rw-r--r-- 1 root root 12781360 7月 7 07:34 docker-buildx-plugin-0.10.5-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 14033464 7月 7 07:34 docker-ce-cli-24.0.3-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 25560020 7月 7 07:34 docker-ce-24.0.3-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 9541972 7月 7 07:34 docker-ce-rootless-extras-24.0.3-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 13369028 7月 7 07:34 docker-compose-plugin-2.19.1-1.el7.x86_64.rpm
升级安装记录:
[root@www docker-ce-24.0.3]# 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.21-3.1.el7.x86_64.rpm: containerd.io-1.6.21-3.1.el7.x86_64
containerd.io-1.6.21-3.1.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 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.10.5-1.el7.x86_64.rpm: docker-buildx-plugin-0.10.5-1.el7.x86_64
docker-buildx-plugin-0.10.5-1.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 docker-ce-24.0.3-1.el7.x86_64.rpm: 3:docker-ce-24.0.3-1.el7.x86_64
docker-ce-24.0.3-1.el7.x86_64.rpm 将作为 3:docker-ce-24.0.2-1.el7.x86_64 的更新
正在检查 docker-ce-cli-24.0.3-1.el7.x86_64.rpm: 1:docker-ce-cli-24.0.3-1.el7.x86_64
docker-ce-cli-24.0.3-1.el7.x86_64.rpm 将作为 1:docker-ce-cli-24.0.2-1.el7.x86_64 的更新
正在检查 docker-ce-rootless-extras-24.0.3-1.el7.x86_64.rpm: docker-ce-rootless-extras-24.0.3-1.el7.x86_64
docker-ce-rootless-extras-24.0.3-1.el7.x86_64.rpm 将作为 docker-ce-rootless-extras-24.0.2-1.el7.x86_64 的更新
正在检查 docker-compose-plugin-2.19.1-1.el7.x86_64.rpm: docker-compose-plugin-2.19.1-1.el7.x86_64
docker-compose-plugin-2.19.1-1.el7.x86_64.rpm 将作为 docker-compose-plugin-2.18.1-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:不更新已安装的软件包。
正在解决依赖关系
--> 正在检查事务
---> 软件包 docker-ce.x86_64.3.24.0.2-1.el7 将被 升级
---> 软件包 docker-ce.x86_64.3.24.0.3-1.el7 将被 更新
---> 软件包 docker-ce-cli.x86_64.1.24.0.2-1.el7 将被 升级
---> 软件包 docker-ce-cli.x86_64.1.24.0.3-1.el7 将被 更新
---> 软件包 docker-ce-rootless-extras.x86_64.0.24.0.2-1.el7 将被 升级
---> 软件包 docker-ce-rootless-extras.x86_64.0.24.0.3-1.el7 将被 更新
---> 软件包 docker-compose-plugin.x86_64.0.2.18.1-1.el7 将被 升级
---> 软件包 docker-compose-plugin.x86_64.0.2.19.1-1.el7 将被 更新
--> 解决依赖关系完成
base/7/x86_64 | 3.6 kB 00:00:00
elrepo | 3.0 kB 00:00:00
elrepo/primary_db | 419 kB 00:00:00
extras/7/x86_64 | 2.9 kB 00:00:00
extras/7/x86_64/primary_db | 250 kB 00:00:00
updates/7/x86_64 | 2.9 kB 00:00:00
updates/7/x86_64/primary_db | 22 MB 00:00:08
依赖关系解决
===============================================================================================================================================================================================================
Package 架构 版本 源 大小
===============================================================================================================================================================================================================
正在更新:
docker-ce x86_64 3:24.0.3-1.el7 /docker-ce-24.0.3-1.el7.x86_64 98 M
docker-ce-cli x86_64 1:24.0.3-1.el7 /docker-ce-cli-24.0.3-1.el7.x86_64 35 M
docker-ce-rootless-extras x86_64 24.0.3-1.el7 /docker-ce-rootless-extras-24.0.3-1.el7.x86_64 19 M
docker-compose-plugin x86_64 2.19.1-1.el7 /docker-compose-plugin-2.19.1-1.el7.x86_64 58 M
事务概要
===============================================================================================================================================================================================================
升级 4 软件包
总计:210 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : docker-compose-plugin-2.19.1-1.el7.x86_64 1/8
正在更新 : 1:docker-ce-cli-24.0.3-1.el7.x86_64 2/8
正在更新 : docker-ce-rootless-extras-24.0.3-1.el7.x86_64 3/8
正在更新 : 3:docker-ce-24.0.3-1.el7.x86_64 4/8
清理 : docker-ce-rootless-extras-24.0.2-1.el7.x86_64 5/8
清理 : 3:docker-ce-24.0.2-1.el7.x86_64 6/8
清理 : 1:docker-ce-cli-24.0.2-1.el7.x86_64 7/8
清理 : docker-compose-plugin-2.18.1-1.el7.x86_64 8/8
验证中 : 1:docker-ce-cli-24.0.3-1.el7.x86_64 1/8
验证中 : 3:docker-ce-24.0.3-1.el7.x86_64 2/8
验证中 : docker-ce-rootless-extras-24.0.3-1.el7.x86_64 3/8
验证中 : docker-compose-plugin-2.19.1-1.el7.x86_64 4/8
验证中 : 3:docker-ce-24.0.2-1.el7.x86_64 5/8
验证中 : docker-compose-plugin-2.18.1-1.el7.x86_64 6/8
验证中 : 1:docker-ce-cli-24.0.2-1.el7.x86_64 7/8
验证中 : docker-ce-rootless-extras-24.0.2-1.el7.x86_64 8/8
更新完毕:
docker-ce.x86_64 3:24.0.3-1.el7 docker-ce-cli.x86_64 1:24.0.3-1.el7 docker-ce-rootless-extras.x86_64 0:24.0.3-1.el7 docker-compose-plugin.x86_64 0:2.19.1-1.el7
完毕!
启动服务、检查版本信息:
[root@www docker-ce-24.0.3]# systemctl start docker.service docker.socket containerd.service
[root@www docker-ce-24.0.3]# systemctl status docker.service docker.socket containerd.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since 五 2023-07-07 10:27:33 CST; 5s ago
Docs: https://docs.docker.com
Main PID: 2350 (dockerd)
Tasks: 31
Memory: 47.8M
CGroup: /system.slice/docker.service
├─2350 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
├─2575 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 80 -container-ip 172.18.0.2 -container-port 80
└─2583 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 80 -container-ip 172.18.0.2 -container-port 80
7月 07 10:27:30 www.cnskylee.com systemd[1]: Starting Docker Application Container Engine...
7月 07 10:27:30 www.cnskylee.com dockerd[2350]: time="2023-07-07T10:27:30.572911414+08:00" level=info msg="Starting up"
7月 07 10:27:30 www.cnskylee.com dockerd[2350]: time="2023-07-07T10:27:30.913374417+08:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
7月 07 10:27:31 www.cnskylee.com dockerd[2350]: time="2023-07-07T10:27:31.418716333+08:00" level=info msg="Loading containers: start."
7月 07 10:27:31 www.cnskylee.com dockerd[2350]: time="2023-07-07T10:27:31.950437092+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon optio...d IP address"
7月 07 10:27:33 www.cnskylee.com dockerd[2350]: time="2023-07-07T10:27:33.577452677+08:00" level=info msg="Loading containers: done."
7月 07 10:27:33 www.cnskylee.com dockerd[2350]: time="2023-07-07T10:27:33.712420117+08:00" level=info msg="Docker daemon" commit=1d9c861 graphdriver=overlay2 version=24.0.3
7月 07 10:27:33 www.cnskylee.com dockerd[2350]: time="2023-07-07T10:27:33.712492762+08:00" level=info msg="Daemon has completed initialization"
7月 07 10:27:33 www.cnskylee.com dockerd[2350]: time="2023-07-07T10:27:33.892919227+08:00" level=info msg="API listen on /run/docker.sock"
7月 07 10:27:33 www.cnskylee.com systemd[1]: Started Docker Application Container Engine.
● docker.socket - Docker Socket for the API
Loaded: loaded (/usr/lib/systemd/system/docker.socket; disabled; vendor preset: disabled)
Active: active (running) since 五 2023-07-07 10:27:29 CST; 9s ago
Listen: /run/docker.sock (Stream)
7月 07 10:27:28 www.cnskylee.com systemd[1]: Starting Docker Socket for the API.
7月 07 10:27:29 www.cnskylee.com systemd[1]: Listening on Docker Socket for the API.
● containerd.service - containerd container runtime
Loaded: loaded (/usr/lib/systemd/system/containerd.service; disabled; vendor preset: disabled)
Active: active (running) since 五 2023-07-07 10:27:30 CST; 9s ago
Docs: https://containerd.io
Process: 2334 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
Main PID: 2338 (containerd)
Tasks: 34
Memory: 104.3M
CGroup: /system.slice/containerd.service
├─2338 /usr/bin/containerd
├─2610 /usr/bin/containerd-shim-runc-v2 -namespace moby -id abc5fdbb7d4c8eaecd7eebd36350adc76628f9c7ef3ced594b220848ef697959 -address /run/containerd/containerd.sock
└─2611 /usr/bin/containerd-shim-runc-v2 -namespace moby -id c42e937c733cebe4b556bb3fbb971821af1a991e5aa8c2d94fe72566d84e171b -address /run/containerd/containerd.sock
7月 07 10:27:30 www.cnskylee.com containerd[2338]: time="2023-07-07T10:27:30.235469191+08:00" level=info msg="containerd successfully booted in 0.069885s"
7月 07 10:27:30 www.cnskylee.com systemd[1]: Started containerd container runtime.
7月 07 10:27:32 www.cnskylee.com containerd[2338]: time="2023-07-07T10:27:32.429440923+08:00" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.ru...nerd.event.v1
7月 07 10:27:32 www.cnskylee.com containerd[2338]: time="2023-07-07T10:27:32.429892554+08:00" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd....d.internal.v1
7月 07 10:27:32 www.cnskylee.com containerd[2338]: time="2023-07-07T10:27:32.429969074+08:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2...nerd.ttrpc.v1
7月 07 10:27:32 www.cnskylee.com containerd[2338]: time="2023-07-07T10:27:32.430955450+08:00" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime....inerd.runc.v2
7月 07 10:27:32 www.cnskylee.com containerd[2338]: time="2023-07-07T10:27:32.437129233+08:00" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.ru...nerd.event.v1
7月 07 10:27:32 www.cnskylee.com containerd[2338]: time="2023-07-07T10:27:32.437223055+08:00" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd....d.internal.v1
7月 07 10:27:32 www.cnskylee.com containerd[2338]: time="2023-07-07T10:27:32.437937317+08:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2...nerd.ttrpc.v1
7月 07 10:27:32 www.cnskylee.com containerd[2338]: time="2023-07-07T10:27:32.439637401+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 info
Client: Docker Engine - Community
Version: 24.0.3
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.10.5
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.19.1
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: 2
Paused: 0
Stopped: 0
Images: 3
Server Version: 24.0.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: 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: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc version: v1.1.7-0-g860f061
init version: de40ad0
Security Options:
seccomp
Profile: builtin
Kernel Version: 3.10.0-1160.90.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