moby: docker network create problem
docker version 1.9.1 linux ubuntu 14.04 3.19.0-59-generic
root@docker1:~# docker network create --driver calico --ipam-driver calico net1 d90f4408f554285aa31820c5cb36333df07ce8a1ac9c37d66cdcf398f4af4179
I configre docker network seemingly is ok but when show network is not ok , root@docker1:~# docker network ls NETWORK ID NAME DRIVER 4c882880b656 bridge bridge 4adc3d57f3a9 none null b9cf3db56a5e host host
root@docker1:~# tail /var/log/upstart/docker.log INFO[1834] POST /v1.21/networks/create WARN[1834] datastore for scope global not initialized. kv object docker/network/v1.0/network/d90f4408f554285aa31820c5cb36333df07ce8a1ac9c37d66cdcf398f4af4179/ is not added to the store WARN[1834] datastore for scope global not initialized. kv object docker/network/v1.0/endpoint_count/d90f4408f554285aa31820c5cb36333df07ce8a1ac9c37d66cdcf398f4af4179/ is not added to the store
Output of docker version
:
root@docker1:~# docker version
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.3
Git commit: a34a1d5
Built: Fri Nov 20 17:56:04 UTC 2015
OS/Arch: linux/amd64
Server: Version: 1.9.1 API version: 1.21 Go version: go1.4.3 Git commit: a34a1d5 Built: Fri Nov 20 17:56:04 UTC 2015 OS/Arch: linux/amd64
(paste your output here)
Output of docker info
:
root@docker1:~# docker info
Containers: 2
Images: 17
Server Version: 1.9.1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 40
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.19.0-59-generic
Operating System: Ubuntu 14.04.1 LTS
CPUs: 2
Total Memory: 989.4 MiB
Name: docker1
ID: 4E3H:SGDI:XPW2:ERCL:HEJR:KGWU:CLBJ:UGI6:ARDS:ZF3X:KDIL:IVR3
WARNING: No swap limit support
Additional environment details (AWS, VirtualBox, physical, etc.):
Steps to reproduce the issue: 1. 2. 3.
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (9 by maintainers)
@pcgeek86 @codercotton @bhaskarcloudyuga The issue was originally filed for 1.9.1 . To begin with, it will help if you can share the docker version that you are trying. The error message
Error response from daemon: datastore for scope "global" is not initialized
indicates that external kv-store is not configured or not reachable.Having said that, docker 1.12 introduced swarm-mode and with that, overlay network doesnt require an external kv-store any more. So, if you are trying 1.12 and you are encountering this error, that means you might have missed
docker swarm init
command to initialize the swarm-mode.I too am having issues creating an overlay network. Instead of
docker-machine
I have followed the directions on https://docs.docker.com/swarm/install-manual/ for creating hosts in AWS (except only creating 1 manager node). I managed to successfully runswarm manage
on the manager node andswarm join
on the worker nodes, passing a functional consul backend to each of them.From the manager node:
docker -H :4000 run hello-world
works fine and I can tell that theswarm
containers are communicating with the Consul serverHowever, when I try to create the network:
All nodes are running the same docker version with
-H 0.0.0.02375
passed to dockerd.$ docker -v Docker version 1.12.1, build 23cf638
@dminca in that case, it’s expected; for overlay networking you need to either setup an external k/v store or (if you want the new services feature in 1.12) use swarm mode; but swarm scopes overlay networks cannot be used for “docker run”, only for services
+1 same issue here, and no way to go. 💔