Oracle云 arm系统安装docker
配置yum源
执行:
yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo [root@instance-20221108-1616 ~]# yum-config-manager \ > --add-repo \ > https://download.docker.com/linux/centos/docker-ce.repo Failed to set locale, defaulting to C.UTF-8 Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
安装docker
yum install docker-ce [root@instance-20221108-1616 ~]# yum install -y docker-ce Failed to set locale, defaulting to C.UTF-8 Docker CE Stable - aarch64 134 kB/s | 31 kB 00:00 Dependencies resolved. ==================================================================================================== Package Arch Version Repository Size ==================================================================================================== Installing: docker-ce aarch64 3:20.10.22-3.el8 docker-ce-stable 13 M Installing dependencies: container-selinux noarch 2:2.189.0-1.module+el8.7.0+20877+e0f9ac15 ol8_appstream 60 k containerd.io aarch64 1.6.14-3.1.el8 docker-ce-stable 24 M docker-ce-cli aarch64 1:20.10.22-3.el8 docker-ce-stable 26 M docker-ce-rootless-extras aarch64 20.10.22-3.el8 docker-ce-stable 4.1 M fuse-overlayfs aarch64 1.9-1.module+el8.7.0+20877+e0f9ac15 ol8_appstream 68 k libcgroup aarch64 0.41-19.el8 ol8_baseos_latest 68 k libslirp aarch64 4.4.0-1.module+el8.7.0+20877+e0f9ac15 ol8_appstream 66 k slirp4netns aarch64 1.2.0-2.module+el8.7.0+20877+e0f9ac15 ol8_appstream 53 k Transaction Summary ==================================================================================================== Install 9 Packages Total download size: 68 M Installed size: 291 M Downloading Packages: (1/9): docker-ce-20.10.22-3.el8.aarch64.rpm 27 MB/s | 13 MB 00:00 (2/9): docker-ce-rootless-extras-20.10.22-3.el8.aarch64.rpm 33 MB/s | 4.1 MB 00:00 (3/9): docker-ce-cli-20.10.22-3.el8.aarch64.rpm 35 MB/s | 26 MB 00:00 (4/9): containerd.io-1.6.14-3.1.el8.aarch64.rpm 29 MB/s | 24 MB 00:00 (5/9): libcgroup-0.41-19.el8.aarch64.rpm 288 kB/s | 68 kB 00:00 (6/9): container-selinux-2.189.0-1.module+el8.7.0+20877+e0f9ac15.no 362 kB/s | 60 kB 00:00 (7/9): libslirp-4.4.0-1.module+el8.7.0+20877+e0f9ac15.aarch64.rpm 1.1 MB/s | 66 kB 00:00 (8/9): fuse-overlayfs-1.9-1.module+el8.7.0+20877+e0f9ac15.aarch64.r 915 kB/s | 68 kB 00:00 (9/9): slirp4netns-1.2.0-2.module+el8.7.0+20877+e0f9ac15.aarch64.rp 1.0 MB/s | 53 kB 00:00 ---------------------------------------------------------------------------------------------------- Total 71 MB/s | 68 MB 00:00 Docker CE Stable - aarch64 17 kB/s | 1.6 kB 00:00 Importing GPG key 0x621E9F35: Userid : "Docker Release (CE rpm) <docker@docker.com>" Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35 From : https://download.docker.com/linux/centos/gpg Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: container-selinux-2:2.189.0-1.module+el8.7.0+20877+e0f9ac15.noarch 1/9 Installing : container-selinux-2:2.189.0-1.module+el8.7.0+20877+e0f9ac15.noarch 1/9 Running scriptlet: container-selinux-2:2.189.0-1.module+el8.7.0+20877+e0f9ac15.noarch 1/9 Installing : containerd.io-1.6.14-3.1.el8.aarch64 2/9 Running scriptlet: containerd.io-1.6.14-3.1.el8.aarch64 2/9 Installing : libslirp-4.4.0-1.module+el8.7.0+20877+e0f9ac15.aarch64 3/9 Installing : slirp4netns-1.2.0-2.module+el8.7.0+20877+e0f9ac15.aarch64 4/9 Installing : fuse-overlayfs-1.9-1.module+el8.7.0+20877+e0f9ac15.aarch64 5/9 Running scriptlet: fuse-overlayfs-1.9-1.module+el8.7.0+20877+e0f9ac15.aarch64 5/9 Running scriptlet: libcgroup-0.41-19.el8.aarch64 6/9 Installing : libcgroup-0.41-19.el8.aarch64 6/9 Running scriptlet: libcgroup-0.41-19.el8.aarch64 6/9 Installing : docker-ce-cli-1:20.10.22-3.el8.aarch64 7/9 Running scriptlet: docker-ce-cli-1:20.10.22-3.el8.aarch64 7/9 Installing : docker-ce-rootless-extras-20.10.22-3.el8.aarch64 8/9 Running scriptlet: docker-ce-rootless-extras-20.10.22-3.el8.aarch64 8/9 Installing : docker-ce-3:20.10.22-3.el8.aarch64 9/9 Running scriptlet: docker-ce-3:20.10.22-3.el8.aarch64 9/9 Running scriptlet: container-selinux-2:2.189.0-1.module+el8.7.0+20877+e0f9ac15.noarch 9/9 Running scriptlet: docker-ce-3:20.10.22-3.el8.aarch64 9/9 Verifying : containerd.io-1.6.14-3.1.el8.aarch64 1/9 Verifying : docker-ce-3:20.10.22-3.el8.aarch64 2/9 Verifying : docker-ce-cli-1:20.10.22-3.el8.aarch64 3/9 Verifying : docker-ce-rootless-extras-20.10.22-3.el8.aarch64 4/9 Verifying : libcgroup-0.41-19.el8.aarch64 5/9 Verifying : container-selinux-2:2.189.0-1.module+el8.7.0+20877+e0f9ac15.noarch 6/9 Verifying : fuse-overlayfs-1.9-1.module+el8.7.0+20877+e0f9ac15.aarch64 7/9 Verifying : libslirp-4.4.0-1.module+el8.7.0+20877+e0f9ac15.aarch64 8/9 Verifying : slirp4netns-1.2.0-2.module+el8.7.0+20877+e0f9ac15.aarch64 9/9 Installed: container-selinux-2:2.189.0-1.module+el8.7.0+20877+e0f9ac15.noarch containerd.io-1.6.14-3.1.el8.aarch64 docker-ce-3:20.10.22-3.el8.aarch64 docker-ce-cli-1:20.10.22-3.el8.aarch64 docker-ce-rootless-extras-20.10.22-3.el8.aarch64 fuse-overlayfs-1.9-1.module+el8.7.0+20877+e0f9ac15.aarch64 libcgroup-0.41-19.el8.aarch64 libslirp-4.4.0-1.module+el8.7.0+20877+e0f9ac15.aarch64 slirp4netns-1.2.0-2.module+el8.7.0+20877+e0f9ac15.aarch64 Complete!
启动docker
systemctl start docker.service