SHARE
TWEET

Untitled

a guest Mar 24th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # MLVC_Docker Manual
  2.  
  3. ## 0. Images
  4. ### mlvc/pytorch
  5. Installed applications
  6.  
  7. | app | ver |
  8. | --- | --- |
  9. | vim | |
  10. | git | |
  11. | openssh-server| |
  12. | python | 3.6.8 |
  13.  
  14. Installed python packages
  15.  
  16. | package | ver |
  17. | --- | --- |
  18. | pytorch | 1.0.1 |
  19. | torchvision | 0.2.2 |
  20. | numpy | 1.15.4 |
  21. | pandas | 0.24.2 |
  22. | scikit-learn | 0.20.3 |
  23. | scipy | 1.2.1 |
  24.  
  25. ## 1. Quick Start
  26. ### Make container
  27. ```
  28. $ nvidia-docker run -it --name YOUR_CONTAINER_NAME mlvc/pytorch
  29. ```
  30. ### List container
  31. ```
  32. $ docker ps     // active container
  33. $ docker ps -a  // all container
  34. ```
  35.  
  36. ### Remove container
  37. > WARNING: Be careful. Deleted container cannot be restored. DO NOT DELETE other user's container.
  38. ```
  39. $ docker rm <CONTAINER_ID>
  40. or
  41. $ docker rm <CONTAINER_NAME>
  42. ```
  43.  
  44. ## 2. Multi GPU
  45. In multi GPU system, Each container can use specefic GPUs.
  46. ```
  47. $ NV_GPU=0,1 nvidia-docker -it <IMAGE>
  48. ```
  49.  
  50. ## 3. Make container options
  51. ### Port mapping
  52. ```
  53. $ nvidia-docker -it -p HOST:CONTAINER <IMAGE>
  54. ex) ssh port mapping
  55. $ nvidia-docer -it -p 2211:22 mlvc/pytorch
  56. ```
  57.  
  58. ### Sharing volume
  59. ```
  60. $ nvidia-docker -it -v /HOST/DIR:/CONTAINER/DIR <IMAGE>
  61. ex)
  62. $ nvidia-docker -it -v /data:/data mlvc/pytorch
  63. ```
  64.  
  65. ## 4. ETC
  66. ### Use ssh
  67. The `mlvc/pytorch` image already installed ssh server
  68. You can use ssh after following commands.
  69.  
  70. ```
  71. // make container
  72. $ nvidia-docer -it -p <outer port>:22 mlvc/pytorch
  73. ```
  74.  
  75. > Be sure, the HOST port can allready used. Request port number to junhyn, server manager.
  76.  
  77. In Container
  78. ```
  79. # service ssh restart
  80. # passwd    // change root password
  81. ```
  82.  
  83. Access is same as common.
  84. ```
  85. ssh root@<host> -P <port>
  86. ```
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