1. $ docker container run -d --publish 80:80 --name webhost nginx
    1. 1. <font style="color:rgb(64, 64, 64);background-color:rgb(252, 252, 252);">在本地查找是否有nginx这个image镜像,但是没有发现</font>
    2. 2. <font style="color:rgb(64, 64, 64);background-color:rgb(252, 252, 252);">去远程的image registry查找nginx镜像(默认的registryDocker Hub)</font>
    3. 3. <font style="color:rgb(64, 64, 64);background-color:rgb(252, 252, 252);">下载最新版本的nginx镜像 nginx:latest 默认)</font>
    4. 4. <font style="color:rgb(64, 64, 64);background-color:rgb(252, 252, 252);">基于nginx镜像来创建一个新的容器,并且准备运行</font>
    5. 5. <font style="color:rgb(64, 64, 64);background-color:rgb(252, 252, 252);">docker engine分配给这个容器一个虚拟IP地址</font>
    6. 6. <font style="color:rgb(64, 64, 64);background-color:rgb(252, 252, 252);">在宿主机上打开80端口并把容器的80端口转发到宿主机上</font>
    7. 7. <font style="color:rgb(64, 64, 64);background-color:rgb(252, 252, 252);">启动容器,运行指定的命令(这里是一个shell脚本去启动nginx)</font>

    Docker Hub

    Quay