How to Directory in a Docker Container.

How to Directory in a Docker Container.

將文件路徑掛載在Docker Container上.

 

1. Mount the current directory.

docker run -it -v "$(pwd)":/Datasets $Container_name /bin/bash

2. Mount the specified directory.

docker run -it -v /home/ubuntu/Datasets:/Datasets $Container_name /bin/bash

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章