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 Node.js environment variables
  • Filesystem changes inside Docker container aren't displayed onto the host filesystem
  • How do I ssh into a container of a worker node of docker swarm?
  • How to delete a Docker image that has no tag?
  • DOCKER_CERT_PATH location in Docker for Windows 10
  • How to support interactive /bin/bash in docker exec command using python dockerpy module on windows?
  • 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?

  • Docker composer project can't find/ping or connect to internal hostnames
  • Use Docker, Gunicorn, Nginx in django development environment but can only see nginx welcome page?
  • Docker failing to see updated fixtures CSV in rspec test directory
  • After docker build . the container is not displayed, why?
  • Automate creation of a VM with Docker containers running inside
  • What is the difference between volumes-from and volumes?
  • 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.