为什么docker-compose会抛出错误?

时间:2016-05-12 20:07:53

标签: docker docker-compose osx-elcapitan docker-machine

$ docker-compose up
Creating network "app_default" with the default driver
ERROR: b'failed to parse pool request for address space "LocalDefault" pool "" subpool "": could not find an available predefined network'

此错误的含义是什么,我该如何解决?

附加背景:

$ docker-compose version
docker-compose version 1.7.1, build 6c29830
docker-py version: 1.8.1
CPython version: 3.5.1
OpenSSL version: OpenSSL 1.0.2h  3 May 2016


$ docker version
Client:
 Version:      1.10.3
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   20f81dd
 Built:        Thu Mar 10 21:49:11 2016
 OS/Arch:      darwin/amd64

Server:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Wed Apr 27 00:34:20 2016
 OS/Arch:      linux/amd64

2 个答案:

答案 0 :(得分:8)

您使用的是某些VPN服务吗? 以下是可能原因的链接: https://github.com/docker/libnetwork/issues/779

答案 1 :(得分:4)

我遇到了这个问题。通过删除所有docker定义的网络解决:

docker network rm `docker network ls -q`