Last active
June 27, 2019 12:17
-
-
Save gabrielkirsten/7c7bb4b647ea6c46d15e205e45054285 to your computer and use it in GitHub Desktop.
Docker helper
This file contains hidden or 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
############################### | |
Install Docker | |
############################### | |
# get a docker instalation script | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
# execute the instalation script | |
sudo sh get-docker.sh | |
############################### | |
Install Jenkins | |
############################### | |
sudo iptables -A INPUT -p tcp --dport 8080 -j ACCEPT | |
sudo docker pull jenkins/jenkins:lts | |
sudo docker image ls | |
sudo docker run -d -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts | |
sudo docker container ls | |
sudo docker exec -it 10e239663278 /bin/bash | |
cat /var/jenkins_home/secrets/initialAdminPassword |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment