Dock安装

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhangchaoyi1a2b/article/details/82786301

1.

安装一些必要的系统工具:

yum install -y yum-utils device-mapper-persistent-data lvm2

2.

添加软件源信息:

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

更新 yum 缓存:

yum makecache fast

安装 Docker-ce:

yum -y install docker-ce

启动 Docker 后台服务

systemctl start docker

测试运行 hello-world

[root@runoob ~]# docker run hello-world

猜你喜欢

转载自blog.csdn.net/zhangchaoyi1a2b/article/details/82786301