Problem starting / deleting docker container - how to fix it

Jiedao jdon 2021-05-04 09:28:31
problem starting deleting docker container


Use Docker In the process , function docker-compose up or docker run when , appear Conflict. The name W is already in use by container XYZ. You have to delete.. or "Conflict, cannot remove the default name of the container..." 

or :Conflict. The name "XYZ" is already in use by container hexacode. You have to delete (or rename) that container to be able to reuse that name.

We can't start the container , Because the name is already in use . function docker ps command , I can't see it .

function docker ps -a

Find your container , Copy its Id Number , And then run :

docker rm 85c2981e63f6 26ea04f41ab3 

After deleting , Run again docker-compose up

The second way is from / var Delete the remaining files manually . say concretely , Can be in / var / lib / docker / containers / Find these files under . Each container directory has a very long hash identifier , There's a lot of ugly stuff in there JSON Output . If you search for a specific string that matches the desired container name , You will find the relevant directory containing its configuration files .

Delete the parent directory that matches the name search , And then restart it Docker service . after , You should be able to use your name again .

版权声明
本文为[Jiedao jdon]所创,转载请带上原文链接,感谢
https://javamana.com/2021/05/20210504092615198r.html

  1. UML和Java的阻抗
  2. The Java application server is dead
  3. There is a problem with Tomcat session
  4. Java + Internet architecture talents
  5. UML and Java
  6. 深入理解Linux内核之内核线程(上)
  7. 如何看待明尼苏达大学因插入实验性漏洞,被禁止贡献 Linux 内核代码?
  8. 梁金荣:使用eBPF追踪LINUX内核
  9. Docker study notes (2)
  10. Deep understanding of kernel threads in Linux kernel (Part one)
  11. How do you think the University of Minnesota is forbidden to contribute Linux kernel code because of the experimental loophole?
  12. Liang Jinrong: tracking Linux kernel with ebpf
  13. 2021Java最新学习路线图新鲜出炉
  14. New learning roadmap for 2021 Java
  15. Spring MVC 的Controller 结构问题
  16. 【烂KDE】Linux登录时用户密码正确,却登录失败
  17. Controller structure of spring MVC
  18. [KDE] when Linux logs in, the user password is correct, but the login fails
  19. HttpSession对象与Cooike的关系 以及 Cookie对象构造函数问题
  20. gRPC-Web:替代REST的gRPC的Javascript库包
  21. java call dll
  22. 用Java构建反应式REST API - Kalpa Senanayake
  23. The relationship between httpsession object and cooike and the construction of cookie object
  24. Grpc Web: a JavaScript library package to replace rest grpc
  25. java call dll
  26. Building reactive rest API with Java - kalpa Senanayake
  27. Five wonders. Feeling of visiting villa in spring
  28. Spring will be far away
  29. 最全面的SpringBoot配置文件详解
  30. 最全面的SpringBoot配置文件详解
  31. 微服务开发神器之JRebel 插件破解和实现本地及远程热部署教程
  32. 漫画 | 你还记得原生的JDBC怎么连接数据库吗?
  33. Java流及流操作示例
  34. The most comprehensive spring boot configuration file
  35. The most comprehensive spring boot configuration file
  36. Cracking and implementing jrebel plug-in of microservice development artifact
  37. Comic | do you remember how the native JDBC connects to the database?
  38. Java stream and stream operation example
  39. ftp连接windows与linux
  40. 装饰器设计模式 - Gene Zeiniss
  41. Spring 3中异步方法调用
  42. AOP相关讨论
  43. jf能支持的表现层目前只有struts 1.x么?
  44. 在j2ee中实现一般java对象数据库的方法。
  45. FTP connecting windows and Linux
  46. Decorator design pattern - gene zeiniss
  47. Asynchronous method call in spring 3
  48. Discussion on AOP
  49. Is struts 1. X the only presentation layer supported by JF?
  50. The method of realizing general Java object database in J2EE.
  51. PDF转HTML工具——用springboot包装pdf2htmlEX命令行工具
  52. Pdf to HTML tool -- Wrapping pdf2htmlex command line tool with springboot
  53. MySQL 的 in 查询不走索引?我拿什么拯救你!
  54. MySQL in query does not go index? What can I do to save you!
  55. PDF转HTML工具——用springboot包装pdf2htmlEX命令行工具
  56. Pdf to HTML tool -- Wrapping pdf2htmlex command line tool with springboot
  57. Java小白入门必学!最全数据类型和运算符笔记,附实例
  58. Java Xiaobai introduction must learn! Notes on the most complete data types and operators, with examples
  59. Spring MVC请求与响应
  60. Spring MVC request and response