Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run docker server within docker container #8

Open
joshku opened this issue Sep 11, 2015 · 4 comments
Open

Unable to run docker server within docker container #8

joshku opened this issue Sep 11, 2015 · 4 comments

Comments

@joshku
Copy link

joshku commented Sep 11, 2015

Hi, I downloaded your image onto my VM and created a docker image using the --privileged flag but I was unable to create another docker image as the docker server was not running. The following are the steps that I took.

docker run -Pd --privileged tehranian/dind-jenkins-slave
#I then did a ssh into the container and ran docker version
jenkins@b327872b1a5d:~$ docker version
Client:
 Version:      1.8.1
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   d12ea79
 Built:        Thu Aug 13 02:35:49 UTC 2015
 OS/Arch:      linux/amd64
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

I am unsure what is going on here but I know sometimes when I create a container it would work and the server would be there and I can run another container within a container but most of the time this would be the output.

@dileep-p
Copy link

dileep-p commented Jan 5, 2016

Same issue here.. !!

@kukjevov
Copy link

kukjevov commented May 8, 2017

Same here. Guys do you have any progress on this? Is anyone looking into this?

I found out that if i want to try it locally this problem occurs when i directly runs command when starting this image. But when i start it in detached mode and then exec something it works, but dont know how to do it with docker plugin.

@kukjevov
Copy link

kukjevov commented May 8, 2017

I got it working.

In your Cloud in Docker Template set Docker Command to /jenkins-slave-startup.sh and it will work then.

@viniciuseduardo
Copy link

Nice. That worked for me too.

I was with this same problem some time.

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

No branches or pull requests

4 participants