dockenstack
dockenstack copied to clipboard
/bin/sh -c docker -d -b none -s vfs & sleep 1; docker pull cirros command fails
I am trying to docker build and I get this error on running the command, the command returns a non zero code
+1
+1
+1
Here is the full error thrown when I tried to install using manual build (since I don't have docker-compose installed):
... Step 11 : RUN docker daemon -b none -s vfs & sleep 1; docker pull cirros ---> Running in e2a5fa9c6c1f
time="2016-08-15T13:21:59.950756068Z" level=info msg="API listen on /var/run/docker.sock" time="2016-08-15T13:21:59.951388231Z" level=warning msg="Running modprobe bridge br_netfilter failed with message: modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.19.0-65-generic/modules.dep.bin'\nmodprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.19.0-65-generic/modules.dep.bin'\n, error: exit status 1" time="2016-08-15T13:21:59.952015273Z" level=warning msg="Running modprobe nf_nat failed with message:
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.19.0-65-generic/modules.dep.bin'
, error: exit status 1" time="2016-08-15T13:21:59.957605371Z" level=fatal msg="Error starting daemon: Error initializing network controller: error obtaining controller instance: Failed to create NAT chain: iptables failed: iptables -t nat -N DOCKER: iptables v1.4.21: can't initialize iptables table `nat': Permission denied (you must be root)\nPerhaps iptables or your kernel needs to be upgraded.\n (exit status 3)"
Cannot connect to the Docker daemon. Is the docker daemon running on this host? Using default tag: latest The command '/bin/sh -c docker daemon -b none -s vfs & sleep 1; docker pull cirros' returned a non-zero code: 1
I have fixed this in my repo. You can see the change in https://github.com/startover/dockenstack/commit/fd00dd407ca438cf4d5f5e79f82e2c1fff50cdc3.
Hoping to help someone.