1.use -v
a.get local dir
b.shouldn't in docker container,but container has install corresponding dir
c.full commands like:
sudo docker run -it -v local dir:docker dir image name:tag /bin/bash
refer to:https://jingyan.baidu.com/article/295430f1e6bdb00c7f00506e.html
2.use many local dir
solution:
use -v local dir:docker dir -v local dir1:docker dir1
full command:
sudo docker run -it -v local dir:docker dir -v local dir1:docker dir1 image-name:tag /bin/bash