Docker 安装
sudo yum update
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io
systemctl start docker
systemctl enable docker
# 官方文档
https://docs.docker.com/engine/install/centos/
命令
#查看容器详情
docker inspect 容器名称
#查看容器Ip地址
docker inspect --format='' 容器ID
https://shmy.github.io/2020/04/25/nginx-use-os-env-in-docker