Skip to content

Instantly share code, notes, and snippets.

@thejimnicholson
Last active October 5, 2020 21:08
Show Gist options
  • Save thejimnicholson/2c0a57c07088af17d9887485ee07c552 to your computer and use it in GitHub Desktop.
Save thejimnicholson/2c0a57c07088af17d9887485ee07c552 to your computer and use it in GitHub Desktop.
Start a docker container for jenkins
#!/usr/bin/env bash
docker volume create jenkins
docker run -d \
-v jenkins:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(which docker):$(which docker) \
-p 8080:8080 -p 50000:50000 \
--name jenkins \
--restart unless-stopped \
jenkins/jenkins:lts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment