Skip to content

Instantly share code, notes, and snippets.

@nimboya
Last active February 7, 2018 15:32
Show Gist options
  • Save nimboya/b902a198d9a72d6cdb334e9cd7b30be2 to your computer and use it in GitHub Desktop.
Save nimboya/b902a198d9a72d6cdb334e9cd7b30be2 to your computer and use it in GitHub Desktop.
How to setup Docker Build in Jenkins
1. Setup Jenkins
2. Install Build and Push Docker Image Plugin
3. add this DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock in /etc/default/docker at the end of file
4. Restart Docker Daemon
5. In the Build and Push Plugin, Docker Host URI: unix:///var/run/docker.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment