Guest User

Untitled

a guest
Dec 13th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. docker pull jenkins/jenkins
  2. 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
  3. docker exec -it jenkins_with_docker touch test.txt
  4.  
  5. docker commit jenkins_with_docker myrepo/ci:latest
  6. docker tag myrepo/ci myrepo/ci
  7. docker push myrepo/ci:latest
  8. docker kill jenkins_with_docker
  9. docker rm $(docker ps -aq)
  10.  
  11. docker pull myrepo/ci
  12. 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
  13.  
  14. docker exec -it jenkins_with_docker ls
Add Comment
Please, Sign In to add comment