Loading

在CentOS上安装Docker

目录

1、自动安装脚本

2、启动 Docker

3、测试hello-world


1、自动安装脚本

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

备用地址:(如果上述命令执行没效果,可以使用以下命令)

curl -sSL https://get.daocloud.io/docker | sh

2、启动 Docker

sudo systemctl start docker

3、测试hello-world

通过运行 hello-world 映像来验证是否正确安装了 Docker Engine-Community 。

sudo docker run hello-world

显示以下图片,代表docker安装成功。 

posted @ 2021-01-25 03:24  Roc-xb  阅读(6)  评论(0)    收藏  举报

易微帮源码


易微帮官网