uopspop

Untitled

Aug 6th, 2020
158
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. docker pull alpine:latest
  3. docker images
  4. docker run alpine echo "hey001"
  5. docker run alpine df
  6. docker run alpine ls /
  7. docker run alpine /bin/sh
  8. docker run -it alpine /bin/sh
  9. docker run -d -it alpine /bin/sh
  10. docker container ls
  11.  
  12. docker container ls
  13. docker container stop XXXXXXX
  14. docker container ls
  15. docker container ls -a
  16. docker container rm XXXXXXX
  17. docker container ls -a
  18.  
  19. docker images
  20. docker rmi OOOOOOOOO
  21. docker images
  22.  
  23. vi Dockerfile
  24. FROM alpine:latest
  25. ENTRYPOINT ["httpd", "-D", "FOREGROUND"]
  26.  
  27. docker build -t myimage .
  28. docker images
  29. docker run -d -p 80:80 myimage
  30. echo $(docker-machine ip)
  31. (go to browser)
  32.  
  33. docker logout
  34. docker login
  35. docker build -t uopsdod/myimage .
  36. docker images
  37. docker push uopsdod/myimage
  38.  
  39.  
  40. docker container stop $(docker container ls -a -q)
  41. docker system prune
  42. -y
  43. docker rmi $(docker images -a -q)
  44.  
RAW Paste Data