Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. FROM busybox
  2. CMD ["/bin/echo", "glad"]
  3. ...
  4. $ docker build -t killme .
  5. Sending build context to Docker daemon 16.38 kB
  6. Sending build context to Docker daemon
  7. Step 0 : FROM busybox
  8.  ---> a9eb17255234
  9. Step 1 : CMD ["/bin/echo", "glad"]
  10.  ---> Running in a4b7bd8b3599
  11.  ---> 9171c8efb1c4
  12. Removing intermediate container a4b7bd8b3599
  13. Successfully built 9171c8efb1c4
  14. ...
  15. $ docker run killme
  16. glad
  17. ...
  18. $ docker run -i -t --cidfile autodoid.cid killme /bin/echo sad
  19. sad
  20. ...
  21. $ docker commit b8e937a0506774a351211ab4cf7a751c7b06e8a33bcfd512f44d0c29651a8be5 killme2
  22. ...
  23. $ docker run killme2
  24. sad
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement