EulerOS 2.8(ARM架构)安装docker

lilygg 2020-06-08

1、打开 dnf 配置文件

vi /etc/dnf/dnf.conf

配置如下,主要是关闭gpgcheck=0 :

[main]  
gpgcheck=0
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False

然后安装 vim 软件测试看看,OK 已经可以正常安装相关软件了

dnf install vim

EulerOS 2.8(ARM架构)安装docker

2、手动安装container-selinux

wget https://repo.huaweicloud.com/centos-altarch/7/extras/aarch64/Packages/container-selinux-2.107-1.el7_6.noarch.rpm
yum -y install policycoreutils-python
rpm -ivh container-selinux-2.107-1.el7_6.noarch.rpm

EulerOS 2.8(ARM架构)安装docker

3、设置docker源

这个可以跟centos操作一致,地址 可查看

dnf config-manager --add-repo http://mirrors.huaweicloud.com/docker-ce/linux/centos/docker-ce.repo

4、安装docker

dnf install -y docker-ce
systemctl start docker
systemctl enable docker
docker -v

EulerOS 2.8(ARM架构)安装docker

EulerOS 2.8(ARM架构)安装docker

相关推荐