解决docker(ERROR:No such container:)错误

栏目: 编程工具 · 发布时间: 6年前

内容简介:今天在用docker搭建elk的时候因为机器性能不好导致了docker-compose创建容器超时然后之后我使用docker-compose down就发生了下面的事情

解决docker(ERROR:No such container:)错误

今天在用 docker 搭建elk的时候因为机器性能不好导致了docker-compose创建容器超时然后

ERROR: for kibana  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for logstash  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for kibana  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for logstash  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).

之后我使用docker-compose down就发生了下面的事情

ERROR: No such container: 42008d315b9b0eaea6fe2dc1448da76df2fd3f9e8c085427b21bb31be7b52873

操作

这个可能是因为你在创建容器的时候还没有创建完成就中断了操作造成的,你所需要做的就是删除 /var/lib/docker/containers 下的 42008d315b9b0eaea6fe2dc1448da76df2fd3f9e8c085427b21bb31be7b52873 文件然后再次执行 docker-compose downdocker-compose up -d 就好了

欢迎关注Bboysoul的博客www.bboysoul.com

Have Fun


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Web 2.0 Heroes

Web 2.0 Heroes

Bradley L. Jones / Wiley / 2008-04-14 / USD 24.99

Web 2.0 may be an elusive concept, but one thing is certain: using the Web as merely a means of retrieving and displaying information is history. Today?s Web is immediate, interactive, innovative. It ......一起来看看 《Web 2.0 Heroes》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具