Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

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

Open
mdsalman729 opened this issue Apr 30, 2016 · 5 comments

Comments

@mdsalman729
Copy link

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

@startover
Copy link

+1

1 similar comment
@crazyscience
Copy link

+1

@vinigfer
Copy link

+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

@startover
Copy link

I have fixed this in my repo. You can see the change in startover@fd00dd4.

Hoping to help someone.

@dionysius
Copy link

dionysius commented Oct 28, 2016

+1

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants