docker ps -a 查询容器
![](https://img.haomeiwen.com/i7972518/ca9e64734e03df19.png)
docker image ls 查询 image
![](https://img.haomeiwen.com/i7972518/94a8fc06cca404ba.png)
docker image pull hello-world
![](https://img.haomeiwen.com/i7972518/2bdbbaab838860dd.png)
因下载镜像较慢,修改了/etc/docker/daemon.json文件
![](https://img.haomeiwen.com/i7972518/7280ad15708bedb7.png)
docker container run hello-world
![](https://img.haomeiwen.com/i7972518/06b3adfcb1e79943.png)
删除容器 docker rm CONTAINER ID
![](https://img.haomeiwen.com/i7972518/e65ed49a35a0d035.png)
docker ps -a 查询容器
docker image ls 查询 image
docker image pull hello-world
因下载镜像较慢,修改了/etc/docker/daemon.json文件
docker container run hello-world
删除容器 docker rm CONTAINER ID
本文标题:Docker 中的简单操作。
本文链接:https://www.haomeiwen.com/subject/fcgzpftx.html
网友评论