Advertisement
Guest User

Untitled

a guest
Sep 21st, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. ###run docker-machine from another cmd on Windows
  2. ```sh
  3. docker-machine env --shell cmd my-default
  4. ```
  5.  
  6. ### see all containers
  7. ```sh
  8. docker ps -a
  9. ```
  10.  
  11. ### remove images
  12. ```sh
  13. docker rmi {id}
  14. ```
  15.  
  16. ### inspect container
  17. ```sh
  18. docker inspect {container-name}
  19. ```
  20.  
  21. ### run node app in docker
  22. -v -> volume
  23.  
  24. -w -> working directory
  25. ```sh
  26. docker run -p 4000:3000 -v $(pwd):/var/www -w "/var/www" node npm start
  27. ```
  28.  
  29. ### remove container with volumes
  30.  
  31. ```sh
  32. docker rm -v {containerName}
  33. ```
  34. ### connect via ssh to docker mashine
  35.  
  36. user: docker
  37.  
  38. password: tcuser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement