Docker学习笔记

超级网迷+ 电脑迷+ 音乐迷
打印 被阅读次数

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.

登录后才可评论.