1. 搜索镜像:docker search hello-world
    2. 拉取镜像:docker pull hello-world,默认情况下,会拉取最新版本镜像(latest),如果需要拉取指定版本,则必须指定TAG标签。
    3. 运行镜像:docker run hello-world
    • 5.创建容器:docker create hello-world:latest docker create —name hello-docker hello-world
      —name 自定义容器名
      1. 查看镜像:docker images
    1. 查看容器:docker ps 查看运行的容器, docker container ls -a 查看所有的容器
    2. 启停容器:docker start/stop/restart hello-world(容器名)
    3. 删除容器:docker rm 容器名 (可通过container ls -a查看)
    4. 删除镜像:docker rmi hello-world