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

refer to : https://www.oschina.net/question/2976815_2245172

posted on 2020-12-16 16:02  dLarger  阅读(75)  评论(0编辑  收藏  举报