daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top