- 容器使用着镜像时,不能删除镜像,例如
[root@centos7964 docker]# docker image rm hello-world
Error response from daemon: conflict: unable to remove repository re ference “hello-world” (must force) - container a63c1ff4c716 is using its referenced image feb5d9fea6a5
- 不要在容器内容使用docker指令,例如:
[root@fcb8fb575aaa /]# docker images
bash: docker: command not found
- 容器运行时不能删除容器,例如:
[root@centos7964 images]# docker rm fcb
Error response from daemon: You cannot remove a running container fcb8fb575aaad5c8b99421cb8707e0701aae5e6062286bc03ca0766287270527. Stop the container before attempting removal or force remove
-
总结课上知识点
-
将Docker平台,镜像,容器常用指令练熟悉
-
预习Docker下的数据操作,镜像文件的制作等.