1, 基于centos镜像,创建container并进入
docker run -it --privileged=true --name webserver2 -p 8888:80 centos /sbin/init
2, 安装并启动nginxyum install nginxsystemctl start nginx.servicesystemctl enable nginx.service
3, 访问http://192.168.56.249:8888/