版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_42528266/article/details/102868622
run [-P] [-p] 示例:docker run -P -i -t centos /bin/bash示例:docker run -p 80 -i -t centos /bin/bash示例:docker run -p 8080:80 -i -t centos /bin/bash示例:docker run -p 0.0.0.0:80 -i -t centos /bin/bash示例:docker run -p 0.0.0.0:8080:80 -i -t centos /bin/bashdocker run -p 80 --name=web -it centos /bin/bashyum install -y wget
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum install -y epel-release
yum install -y nginxvim index.htmlcurl http://127.0.0.1:32769/index.html