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-Machine AWS Policies
  • Linux Container vs JVM
  • Docker: cannot link containers in --net=host mode
  • .NET Core Container Built with VSTS won't run on Linux
  • docker SSL connection error
  • 502 Bad Gateway Error(Nginx as Docker container + Consul Docker run + Tomcat as a Docker container + Nomad)
  • 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 create an serverless infrastructure with docker?
  • Rancher external subdomains
  • Docker Containers - User Data
  • Running a Docker Cloud Node on Windows
  • Using Docker Environment Variables in Angular2 application
  • How to populate table by commands in the Dockerfile
  • 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.