docker pull hello-world 和 docker run hello-world 有什么区别?
docker pull hello-world
docker run hello-world
两个命令都只下载镜像,从不创建容器。
pull 下载镜像,而 run 根据镜像创建并启动容器。
pull
run
pull 删除镜像,而 run 停止容器。
pull 构建 Dockerfile,而 run 只添加镜像标签。