Body: <p>Hopefully someone can help, I've found lots of information online but as I'm brand new to both jenkins and docker, I'm having a hard time sorting out which suggested solutions happen on the what machine, so I'm cargo culting without any success.</p>
  
  <p>Setup I'm attempting:
  - physical box is OSX with docker for mac installed
  - I created a docker container that runs jenkins, it works, I can make a hello-world job run fine on the master node
  - I want to create dynamic docker build agents
  - I've tried configuring the Docker Cloud plugin to make build agents from the evarga/jenkins-slave image
  - I don't know what to put in Docker Host URI. I have tried tcp://127.0.0.1:2376 but when I "Test Connection" I get a Connection Refused error message.
  - I've also tried /var/run/docker.sock as the HOST URI and in that case I get a 403 "No valid crumb was included in the request"</p>
  
  <p>Any help much appreciated!</p>
  
Comments: CC BY-SA 4.0
Comments: 2018-07-02T13:45:38.667Z
Comments: Is port 2376 open on your container?
Comments: Preston Martin
Comments: CC BY-SA 4.0
Comments: 2018-07-02T16:12:37.667Z
Comments: Good point. I was following a book, and maybe they've made a mistake. Both the jenkins docker container and the slave containers I'm trying to start are running on the docker VM managed by Docker for Mac. Do you know if I need to do anything special to let them connect to each other? I'll start digging.
Comments: Iain Duncan
Comments: CC BY-SA 4.0
Comments: 2019-12-23T10:28:43.110Z
Comments: Could you post an answer?
Comments: 030
Tags: <docker><jenkins><docker-in-docker><macos>
Title: Using docker cloud from jenkins running on local osx docker
UserDisplayName: Iain Duncan
ThreadText: # Using docker cloud from jenkins running on local osx docker
  
  (Asked by: username_0 on 2018-07-02)
  
  Hopefully someone can help, I've found lots of information online but as I'm brand new to both jenkins and docker, I'm having a hard time sorting out which suggested solutions happen on the what machine, so I'm cargo culting without any success.
  
  Setup I'm attempting:
  - physical box is OSX with docker for mac installed
  - I created a docker container that runs jenkins, it works, I can make a hello-world job run fine on the master node
  - I want to create dynamic docker build agents
  - I've tried configuring the Docker Cloud plugin to make build agents from the evarga/jenkins-slave image
  - I don't know what to put in Docker Host URI. I have tried tcp://127.0.0.1:2376 but when I "Test Connection" I get a Connection Refused error message.
  - I've also tried /var/run/docker.sock as the HOST URI and in that case I get a 403 "No valid crumb was included in the request"
  
  Any help much appreciated!
  
  **Tags:** docker, jenkins, docker-in-docker, macos
  
  > **Comments:**
  > **username_1**: Is port 2376 open on your container?  
  > **username_0**: Good point. I was following a book, and maybe they've made a mistake. Both the jenkins docker container and the slave containers I'm trying to start are running on the docker VM managed by Docker for Mac. Do you know if I need to do anything special to let them connect to each other? I'll start digging.  
  > **username_2**: Could you post an answer?  
  
  ---
  
  ## 0 answers
  
  