[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
pujh/centos tomcat-centos 70ff7873d7cd About an hour ago MB
docker.io/centos latest 9f38484d220f days ago MB
[root@localhost ~]# docker tag 70ff7873d7cd my_centos:tomcat-centos
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
my_centos tomcat-centos 70ff7873d7cd About an hour ago 612 MB
pujh/centos tomcat-centos 70ff7873d7cd About an hour ago MB
docker.io/centos latest 9f38484d220f days ago MB [root@localhost ~]# docker rmi 70ff7873d7cd
Error response from daemon: conflict: unable to delete 70ff7873d7cd (cannot be forced) - image is being used by running container 70859e710147
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
70859e710147 70ff "/bin/sh -c '/root..." About an hour ago Up About an hour 0.0.0.0:->/tcp dazzling_hopper
[root@localhost ~]# docker stop 70859e710147
[root@localhost ~]# docker rm 70859e710147 
[root@localhost ~]# docker rmi 70ff7873d7cd
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
my_centos tomcat-centos 70ff7873d7cd About an hour ago 612 MB
docker.io/centos latest 9f38484d220f 11 days ago 202 MB
 

最新文章

  1. android布局实践——模仿微信主界面
  2. [git]问题list
  3. javase基础复习攻略《二》
  4. C#闪屏
  5. 从ext2文件系统上读出超级块
  6. [Node.js] Introduction to apiCheck.js
  7. 【学习笔记】【Foundation】集合Set
  8. .net 网站发布 Web.Config中的<compilation debug="true"/>
  9. 变量 - PHP手册笔记
  10. Linux PCI网卡驱动的详细分析
  11. Windows(64位IIS)未在本地计算机上注册“Microsoft.Jet.OLEDB.4.0”提供程序
  12. effective c++ 条款12 copy all parts of an object
  13. memcache 细究(一)
  14. Python初体验
  15. [转] Freemarker的常用技巧总结
  16. Mongodb基础与入门
  17. eclipse生成【带有外部jar包】的java可执行jar包
  18. Jenkins|简单Job配置|启动脚本|测试报告
  19. 关于在spring boot里使用Thymeleaf模板的application.properties配置
  20. 【BZOJ 2119】股市的预测(SAM)

热门文章

  1. ==和is
  2. ubuntu 安装php 扩展和查看扩展包
  3. Java-Runoob-高级教程-实例-时间处理:02. Java 实例 - 获取当前时间
  4. ueditor 正在读取目录及网络链接错误
  5. c#day02
  6. CVE-2017-8570漏洞利用
  7. GDB 调试 ---转 比较全的东东
  8. sas 配置文件和AutoExec
  9. Redis 实现问题
  10. 获取Android文件路径