您现在的位置是:首页 > 文章详情

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

日期:2019-05-28点击:687

简介

今天在用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

原文链接:https://yq.aliyun.com/articles/704024
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章