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