- 安装Docker-ce
- yum install docker-ce
- 启动Docker服务
- # systemctl start docker
- # systemctl enable docker
- # systemctl restart docker
- 查看Docker映像
- # docker images
- 查看Docker容器
- # docker ps
- 查看容器IP
- docker inspect -f ‘{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}’ 72be33e15d7d
- 宿主机IP
- 172.18.0.1 宿主主机安全策略需放行服务端口