Linux Docker安装
一.执行Linux yum 安装命令
- 安装docker
yum install -y docker
二.查看docker版本
-
docker -v
-
修改/etc/docker/daemon.json 配置加速镜像源
{ "registry-mirrors" : [ "http://hub-mirror.c.163.com" ] }
-
重启docker
systemctl restart docker
三.运行docker hello-world
-
启动docker
systemctl start docker
-
查看docker状态
systemctl status docker
-
上面可以看到运行成功了 接下来运行hello-world
docker run hello-world