Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- docker pull jenkins/jenkins
- docker run --name jenkins_with_docker -d -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker jenkins/jenkins
- docker exec -it jenkins_with_docker touch test.txt
- docker commit jenkins_with_docker myrepo/ci:latest
- docker tag myrepo/ci myrepo/ci
- docker push myrepo/ci:latest
- docker kill jenkins_with_docker
- docker rm $(docker ps -aq)
- docker pull myrepo/ci
- docker run --name jenkins_with_docker -d -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker myrepo/ci
- docker exec -it jenkins_with_docker ls
Add Comment
Please, Sign In to add comment