dockenstack icon indicating copy to clipboard operation
dockenstack copied to clipboard

/bin/sh -c docker -d -b none -s vfs & sleep 1; docker pull cirros command fails

Open mdsalman729 opened this issue 8 years ago • 5 comments

I am trying to docker build and I get this error on running the command, the command returns a non zero code

mdsalman729 avatar Apr 30 '16 21:04 mdsalman729

+1

startover avatar May 16 '16 12:05 startover

+1

crazyscience avatar Jul 16 '16 08:07 crazyscience

+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

vinigfer avatar Aug 15 '16 13:08 vinigfer

I have fixed this in my repo. You can see the change in https://github.com/startover/dockenstack/commit/fd00dd407ca438cf4d5f5e79f82e2c1fff50cdc3.

Hoping to help someone.

startover avatar Aug 16 '16 14:08 startover

+1

~~(I worked-around that using fork: oxisto/dockenstack)~~ failed

dionysius avatar Oct 28 '16 12:10 dionysius