docker-compose编排启动时,出现某些容器游离异常

This is a stale endpoint case. Do you happen to have the error log when that container that was originally removed (which left the endpoint in this state).
BTW, if the container is removed, but the endpoint is still seen, then one can force disconnect the endpoint using docker network disconnect -f {network} {endpoint-name} . You can get the endpoint-name from the docker network inspect {network} command.

 

这是一个过时的终结点问题。当最初移除的容器(使终结点处于此状态)时,方式非正常手段,应该有错误日志。

如果容器被移除了,但是端点仍然可见,那么可以使用docker network disconnect-f{network}{endpoint name}强制断开端点的连接。可以从docker network inspect{network}命令获取端点名称。

issue地址:https://github.com/moby/moby/issues/17217#issuecomment-196607597

posted @ 2019-11-29 11:57  叨叨的蜗牛  阅读(243)  评论(0编辑  收藏  举报