An open API service indexing awesome lists of open source software.

https://github.com/ims94/jenkins-with-docker

A modified version of jenkins:lts docker image with docker installed
https://github.com/ims94/jenkins-with-docker

ci-cd devops docker docker-compose jenkins

Last synced: 5 days ago
JSON representation

A modified version of jenkins:lts docker image with docker installed

Awesome Lists containing this project

README

          

# Jenkins with Docker

A modified version of the [jenkins:lts](https://hub.docker.com/r/jenkins/jenkins) docker image with docker installed in it. Used to run a jenkins instance that can perform docker builds out of the box.

Docker image available at: https://hub.docker.com/r/ims94/jenkins

## Prerequisites

- The host machine should have docker installed as this container requires to mount the `docker.sock` of the host machine as a mounted volume.

## Run
With docker CLI:
```
docker run \
--publish 8000:8080 \
--publish 50000:50000 \
--volume jenkins_home:/var/jenkins_home \
--volume /var/run/docker.sock:/var/run/docker.sock \
--name jenkins -d ims94/jenkins:latest
```

With docker-compose (use the `docker-compose.yml` file in the repository):
```
docker-compose up -d
```