1. 搜索镜像

      docker search nginx

    2. 拉取镜像

    docker pull nginx
    image.png

    1. 运行测试

    docker run -d —name nginx01 -p 3344:80 nginx
    image.png
    #注释
    -d #后台运行
    —name #别名
    -p #宿主机端口号:容器端口号

    crul localhost:3344
    image.png

    1. 端口暴露概念

    image.png

    1. 进入Nginx容器

    image.png