我收到了轰鸣声错误。在群集群中创建和运行容器时。
Creating network "ubuntu_default" with the default driver
ERROR: 500 Internal Server Error: failed to parse pool request
for address space "GlobalDefault" pool "" subpool "":
cannot find address space GlobalDefault
(most likely the backing datastore is not configured)
我遵循的步骤。
创建了一个VPC并添加了一个允许所有端口号的安全组。
在AWS中创建了一台3 ubuntu计算机(manager,slave1,slave2)
首先使用以下命令启动Consul节点
docker run --restart = unless-stopped -d -p 8500:8500 -h consul1 progrium / consul -server -bootstrap
然后在同一台机器上启动了一个群体管理器
docker run --restart = unless-stopped -d -p 3375:2375 swarm manage consul://172.31.17.163:8500
然后将2个奴隶添加到其中
docker -H = tcp:// slave1ip:2375 --restart =除非停止运行-d swarm join --advertise = slave1ip:2375 consul://172.31.17.163:8500
docker -H = tcp:// slave2ip:2375 --restart =除非停止运行-d swarm join --advertise = slave2ip:2375 consul://172.31.17.163:8500
在swarm manger机器中添加了consul商店
DOCKER_OPTS =" --cluster-store = consul://172.31.17.163:8500 --cluster-advertise = eth0:2375 -H tcp://0.0.0.0:2375 -H unix:// /var/run/docker.sock"
码头信息
Containers: 8
Running: 2
Paused: 0
Stopped: 6
Images: 4
Server Version: swarm/1.1.3
Role: primary
Strategy: spread
Filters: health, port, dependency, affinity, constraint
Nodes: 2
ip-172-31-19-203: slave1ip:2375
└ Status: Healthy
└ Containers: 4
└ Reserved CPUs: 0 / 1
└ Reserved Memory: 0 B / 1.018 GiB
└ Labels: executiondriver=native-0.2, kernelversion=3.13.0-74-generic, operatingsystem=Ubuntu 14.04.4 LTS, storagedriver=aufs
└ Error: (none)
└ UpdatedAt: 2016-03-29T11:32:39Z
ip-172-31-42-220: slave2ip:2375
└ Status: Healthy
└ Containers: 4
└ Reserved CPUs: 0 / 1
└ Reserved Memory: 0 B / 1.018 GiB
└ Labels: executiondriver=native-0.2, kernelversion=3.13.0-74-generic, operatingsystem=Ubuntu 14.04.4 LTS, storagedriver=aufs
└ Error: (none)
└ UpdatedAt: 2016-03-29T11:32:21Z
Plugins:
Volume:
Network:
Kernel Version: 3.13.0-74-generic
Operating System: linux
Architecture: amd64
CPUs: 2
Total Memory: 2.035 GiB
Name: 257d542e5b26
它是完美的。我可以看到容器创建带有传播策略的奴隶export DOCKER_HOST = tcp://172.31.17.163:3375
docker run hello-world
现在我只是尝试创建
搬运工-compose.yml
version: "2"
services:
web:
image: busybox
docker-compose up
这表示以下错误。
Creating network "ubuntu_default" with the default driver
ERROR: 500 Internal Server Error: failed to parse pool request
for address space "GlobalDefault" pool "" subpool "":
cannot find address space GlobalDefault
(most likely the backing datastore is not configured)
它为
提供了相同的错误docker network create -d overlay myapp
所以问题是,这不是使用我当前的配置创建覆盖网络。
如何解决此错误?