daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Sep 21st, 2016 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
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