超級網迷

超級網迷+ 電腦迷+ 音樂迷
個人資料
正文

Docker學習筆記

(2017-12-28 10:46:06) 下一個

1. 以 -v 啟動docker 後,查看volume在host上的路徑:

用awk就可以取到我們想要的路徑:

2. If you need ping in the container, read this post:

Docker ubuntu ping bash not found

3. If you want to access a folder on the host from a ubuntu VM :

How to Access Folders on Your Host Machine from an Ubuntu Virtual Machine in VirtualBox

4. ubuntu 密碼忘記了怎麽辦?

How to change root password in ubuntu?

5. pip 批量安裝:

How to pip install packages according to requirements.txt from a local directory?

For virtualenv to install all files in the requirements.txt file.

  1. cd to the directory where requirements.txt is located
  2. activate your virtualenv
  3. run: pip install -r requirements.txt in your shell

6.

[ 打印 ]
閱讀 ()評論 (0)
評論
目前還沒有任何評論
登錄後才可評論.