Centos 上安装Docker步骤

Docker

Centos 上安装Docker步骤

参考地址: https://docs.docker.com/engine/install/centos/

安装 yum-utils

sudo yum install -y yum-utils

新增 docker 存储库

sudo yum-config-manager \
    --add-repo \
    http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

安装 Docker 引擎

sudo yum install docker-ce docker-ce-cli containerd.io

启动 Docker

sudo systemctl start docker

通过运行 hello-world 验证安装是否成功

sudo docker run hello-world
posted @ 2021-07-22 11:47  GetcharZp  阅读(56)  评论(0编辑  收藏  举报