初步了解Docker容器(三)
一、初步了解 1、docker run运行容器 我们运行第一个 docker 容器 hello-world,过程如下图: 1.Docker 客户端执行 docker run 命令。 2.Docker daemon 发现本地没有 hello-world 镜像。 3.daemon 从 Docker Hub 下载镜像。 4.下载完成,镜像 hello-world 被保存到本地。 5.Docker daemon 启动容器。 2、docker images查看镜像 docker images 可以查看到 hello-world 已经下载到本地。 root@ubuntu:~# docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest f2a91732366c 5 days ago 1.85kB 3、docker ps查看容器 docker ps -a 显示所有状态的容器。 root@ubuntu:~# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS POR...









