官网下载地址(For RHEL/CentOS 7.9):
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
本次官方发布的rpm包只有3个,下载地址如下:
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-23.0.4-1.el7.x86_64.rpm
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-23.0.4-1.el7.x86_64.rpm
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-rootless-extras-23.0.4-1.el7.x86_64.rpm
在已经安装了docker-ce-23.0.3的Linux虚拟机上,直接升级安装,记录如下:
# ls -ltr
总用量 111332
-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 35272912 4月 6 07:43 containerd.io-1.6.20-3.1.el7.x86_64.rpm
-rw-r--r-- 1 root root 12726784 4月 6 07:43 docker-buildx-plugin-0.10.4-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 12205928 4月 6 07:43 docker-compose-plugin-2.17.2-1.el7.x86_64.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 24582580 4月 19 07:27 docker-ce-23.0.4-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 9261924 4月 19 07:27 docker-ce-rootless-extras-23.0.4-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 13940168 4月 19 07:27 docker-ce-cli-23.0.4-1.el7.x86_64.rpm
# 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.20-3.1.el7.x86_64.rpm: containerd.io-1.6.20-3.1.el7.x86_64
containerd.io-1.6.20-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.4-1.el7.x86_64.rpm: docker-buildx-plugin-0.10.4-1.el7.x86_64
docker-buildx-plugin-0.10.4-1.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 docker-ce-23.0.4-1.el7.x86_64.rpm: 3:docker-ce-23.0.4-1.el7.x86_64
docker-ce-23.0.4-1.el7.x86_64.rpm 将作为 3:docker-ce-23.0.3-1.el7.x86_64 的更新
正在检查 docker-ce-cli-23.0.4-1.el7.x86_64.rpm: 1:docker-ce-cli-23.0.4-1.el7.x86_64
docker-ce-cli-23.0.4-1.el7.x86_64.rpm 将作为 1:docker-ce-cli-23.0.3-1.el7.x86_64 的更新
正在检查 docker-ce-rootless-extras-23.0.4-1.el7.x86_64.rpm: docker-ce-rootless-extras-23.0.4-1.el7.x86_64
docker-ce-rootless-extras-23.0.4-1.el7.x86_64.rpm 将作为 docker-ce-rootless-extras-23.0.3-1.el7.x86_64 的更新
正在检查 docker-compose-plugin-2.17.2-1.el7.x86_64.rpm: docker-compose-plugin-2.17.2-1.el7.x86_64
docker-compose-plugin-2.17.2-1.el7.x86_64.rpm:不更新已安装的软件包。
正在检查 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.23.0.3-1.el7 将被 升级
---> 软件包 docker-ce.x86_64.3.23.0.4-1.el7 将被 更新
---> 软件包 docker-ce-cli.x86_64.1.23.0.3-1.el7 将被 升级
---> 软件包 docker-ce-cli.x86_64.1.23.0.4-1.el7 将被 更新
---> 软件包 docker-ce-rootless-extras.x86_64.0.23.0.3-1.el7 将被 升级
---> 软件包 docker-ce-rootless-extras.x86_64.0.23.0.4-1.el7 将被 更新
--> 解决依赖关系完成
base/7/x86_64 | 3.6 kB 00:00:00
extras/7/x86_64 | 2.9 kB 00:00:00
updates/7/x86_64 | 2.9 kB 00:00:00
依赖关系解决
===============================================================================================================================================================================================================
Package 架构 版本 源 大小
===============================================================================================================================================================================================================
正在更新:
docker-ce x86_64 3:23.0.4-1.el7 /docker-ce-23.0.4-1.el7.x86_64 94 M
docker-ce-cli x86_64 1:23.0.4-1.el7 /docker-ce-cli-23.0.4-1.el7.x86_64 35 M
docker-ce-rootless-extras x86_64 23.0.4-1.el7 /docker-ce-rootless-extras-23.0.4-1.el7.x86_64 19 M
事务概要
===============================================================================================================================================================================================================
升级 3 软件包
总计:147 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : 1:docker-ce-cli-23.0.4-1.el7.x86_64 1/6
正在更新 : docker-ce-rootless-extras-23.0.4-1.el7.x86_64 2/6
正在更新 : 3:docker-ce-23.0.4-1.el7.x86_64 3/6
清理 : docker-ce-rootless-extras-23.0.3-1.el7.x86_64 4/6
清理 : 3:docker-ce-23.0.3-1.el7.x86_64 5/6
清理 : 1:docker-ce-cli-23.0.3-1.el7.x86_64 6/6
验证中 : 1:docker-ce-cli-23.0.4-1.el7.x86_64 1/6
验证中 : 3:docker-ce-23.0.4-1.el7.x86_64 2/6
验证中 : docker-ce-rootless-extras-23.0.4-1.el7.x86_64 3/6
验证中 : 1:docker-ce-cli-23.0.3-1.el7.x86_64 4/6
验证中 : docker-ce-rootless-extras-23.0.3-1.el7.x86_64 5/6
验证中 : 3:docker-ce-23.0.3-1.el7.x86_64 6/6
更新完毕:
docker-ce.x86_64 3:23.0.4-1.el7 docker-ce-cli.x86_64 1:23.0.4-1.el7 docker-ce-rootless-extras.x86_64 0:23.0.4-1.el7
完毕!
检查版本信息
# docker version
Client: Docker Engine - Community
Version: 23.0.4
API version: 1.42
Go version: go1.19.8
Git commit: f480fb1
Built: Fri Apr 14 10:36:38 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 23.0.4
API version: 1.42 (minimum version 1.12)
Go version: go1.19.8
Git commit: cbce331
Built: Fri Apr 14 10:34:14 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.20
GitCommit: 2806fc1057397dbaeefbea0e4e17bddfbd388f38
runc:
Version: 1.1.5
GitCommit: v1.1.5-0-gf19387a
docker-init:
Version: 0.19.0
GitCommit: de40ad0
# docker info
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.10.4
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.17.2
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: 10
Server Version: 23.0.4
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: runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: 2806fc1057397dbaeefbea0e4e17bddfbd388f38
runc version: v1.1.5-0-gf19387a
init version: de40ad0
Security Options:
seccomp
Profile: builtin
Kernel Version: 3.10.0-1160.88.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 5.808GiB
Name: vm-fsdh23re9ff
ID: 2b294321-50a2-4418-bf52-5cca14285865
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://b9pmyelo.mirror.aliyuncs.com/
Live Restore Enabled: false