dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf update
dnf install -y docker-ce docker-ce-cli containerd.io
docker --version
systemctl enable docker
systemctl start docker
systemctl status docker
# 添加用户到 Docker 组
usermod -aG docker jxch
id jxch
# 测试
docker run hello-world
上一篇
DockerSwarm-初始化
2023-04-21
下一篇
Hadoop-11.优化
2023-04-21