本文主要介绍在arm架构上的centos8上面如何安装docker环境。
官网安装地址:https://docs.docker.com/engine/install/centos/
cat /etc/redhat-release
sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine
# centos能上外网 sudo yum -y install gcc sudo yum -y install gcc-c++
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin --allowerasing
--allowerasing
来替换冲突的软件包sudo systemctl start docker
sudo docker run hello-world
docker
用户组sudo groupadd docker
sudo gpasswd -a sds docker
newgrp docker