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

简介

今天在用docker搭建elk的时候由于机器性能很差致使了docker-compose建立容器超时而后docker

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就发生了下面的事情bash

ERROR: No such container: 42008d315b9b0eaea6fe2dc1448da76df2fd3f9e8c085427b21bb31be7b52873ide

操做

这个多是由于你在建立容器的时候尚未建立完成就中断了操做形成的,你所须要作的就是删除/var/lib/docker/containers下的42008d315b9b0eaea6fe2dc1448da76df2fd3f9e8c085427b21bb31be7b52873文件而后再次执行docker-compose downdocker-compose up -d就行了性能

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

相关文章
相关标签/搜索