Install Docker on Jenkins on OSX

I have a local jenkins on OSX.

It’s working fine, but now I want to perform docker builds inside the jenkins.

  • docker run <image> : /usr/bin/env: ruby.exe : No such file or directory
  • DHCP interface on docker
  • Close Docker expose port from parent file
  • Unsatisfiable constraints when installing packages on docker alpine
  • What is Docker Cloud local url?
  • Docker - where are the src files for ADD and COPY?
  • So I have to install docker inside my jenkins.

    Is this possible, because I thought you can’t install docker on osx? (only docker-machine).

    I don’t know if it’s possible to configure jenkins to use docker-machine?

  • How to update a Docker Image
  • pull from private docker repo in msbuild
  • Kubernetes pod is reported as running while it is not
  • nginx on docker doesn't work with location URL
  • Docker machine inject USB device
  • How to make postgresql database connectable from outside of the postgres docker container?
  • One Solution collect form web for “Install Docker on Jenkins on OSX”

    Docker-machine is a Linux VM.

    First option: start a Jenkins slave inside this VM, it will have access to the docker daemon to build your image.

    Second option: configure Jenkins to use Docker slaves using Docker-machine. You will be able to build docker images from a docker slave.

    I would do this for a PoC or an evaluation setup. For a Production setup, I would use real linux hosts to build Docker images.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.