1、使用docker run --name containerName -p 80:80 -d nginx命令创建并运行一个容器。
2、其中-p将宿主机 端口与容器端口映射。
3、其中-d是后台运行容器。