Last active
October 5, 2020 21:08
-
-
Save thejimnicholson/2c0a57c07088af17d9887485ee07c552 to your computer and use it in GitHub Desktop.
Start a docker container for jenkins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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