Slave image does not support running docker

0 votes

I'm using the Kubernetes Jenkins plugin to arrange jenkins slaves

I want to run all the jobs in Docker

I am using the jenkinsci/jnlp-slave from here:

https://hub.docker.com/r/jenkinsci/jnlp-slave/

the slave image doesn't appear to support running docker. How do I fix this?

Jul 19, 2018 in Docker by Nilesh
• 6,960 points
1,190 views

1 answer to this question.

0 votes

You need to install docker client and mount the docker socket so you can access the Docker host. Then you can interact with that Docker host

https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/

https://github.com/jenkinsci/docker-workflow-plugin/tree/master/demo

Also set the container name a jnlp so that it does not creates another container inside the pot.

answered Jul 19, 2018 by Kalgi
• 2,620 points

Related Questions In Docker

0 votes
1 answer

Brew install docker does not include docker engine?

Please try running brew install docker This will install ...READ MORE

answered Jul 30, 2018 in Docker by Kalgi
• 51,850 points
136 views
0 votes
2 answers

Why is docker image eating up my disk space that is not used by docker

Move the /var/llib/docker directory. Assuming the /root directory has enough ...READ MORE

answered Aug 6, 2018 in Docker by Nilesh
• 6,960 points
378 views
0 votes
1 answer
0 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
1,232 views
0 votes
1 answer

How to store data in external drive with Docker Postgres:9.3 image?

Apparently, the problem would be in your ...READ MORE

answered Jul 12, 2018 in Docker by Kalgi
• 2,620 points
495 views
0 votes
1 answer

Error “unable to resolve host docker”

This error occurs because its not a ...READ MORE

answered Jul 10, 2018 in Docker by Kalgi
• 2,620 points
1,264 views