v7甲骨文ARM服务器Oracle Linux v7系统安装Docker
date
May 15, 2022
slug
tip-oracle-arm-aarch64-install-docker-v7
status
Published
summary
小技巧 Oracle v7
tags
tip
type
Post
URL
Problem & SummarySolution官方有个文档,但不是我下面试的 - https://oracle-base.com/articles/linux/docker-install-docker-on-oracle-linux-ol7获取Oracle Linux的版本安装现在安装就会碰上出错 - slirp4netns fuse-overlayfs container-selinuxScreenshots
Problem & Summary
- 默认是不支持的
- 这个只是对Oracle 7做了试验,成功了
- Oracle 7 使用yum, Oracle 8就可以用dnf包管理工具了
Solution
官方有个文档,但不是我下面试的 - https://oracle-base.com/articles/linux/docker-install-docker-on-oracle-linux-ol7
下次试试
获取Oracle Linux的版本
# get Oracle Linux version
cat /etc/oracle-release
ls -l /etc/*-release
cat /etc/*-release
安装
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
cat >> /etc/yum.repos.d/docker-ce.repo <EOF
[centos-extras]
name=Centos extras - $basearch
baseurl=http://mirror.centos.org/centos/7/extras/x86_64
enabled=1
gpgcheck=1
gpgkey=http://centos.org/keys/RPM-GPG-KEY-CentOS-7
EOF
yum upgrade
#yum search docker
#cd /etc/yum.repos.d
yum install yum-utils
yum repolist
yum-config-manager --enable *addons
yum install container-selinux
现在安装就会碰上出错 - slirp4netns fuse-overlayfs container-selinux
- 需要下载这几个包
wget https://mirrors.huaweicloud.com/centos-altarch/7/extras/aarch64/Packages/slirp4netns-0.4.3-4.el7_8.aarch64.rpm
wget https://mirrors.huaweicloud.com/centos-altarch/7/extras/aarch64/Packages/fuse3-libs-3.6.1-4.el7.aarch64.rpm
wget https://mirrors.huaweicloud.com/centos-altarch/7/extras/aarch64/Packages/fuse-overlayfs-0.7.2-6.el7_8.aarch64.rpm
rpm -ivh slirp4netns-0.4.3-4.el7_8.aarch64.rpm
rpm -ivh fuse3-libs-3.6.1-4.el7.aarch64.rpm
rpm -ivh fuse-overlayfs-0.7.2-6.el7_8.aarch64.rpm
# 再尝试安装
yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
systemctl enable --now docker
docker version
docker run hello-world