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
- Host: GitHub
- URL: https://github.com/ims94/jenkins-with-docker
- Owner: IMS94
- Created: 2020-12-28T02:46:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-28T10:02:37.000Z (over 5 years ago)
- Last Synced: 2025-01-30T09:42:57.771Z (about 1 year ago)
- Topics: ci-cd, devops, docker, docker-compose, jenkins
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```