标签: docker
我有一个包含 /opt/boost/ 目录的 docker 容器。有什么办法可以映射它 在我的主机上/opt/boost并使用其内容?
/opt/boost/
/opt/boost
答案 0 :(得分:0)
您可以将 docker mount 与 bind 类型一起使用。
mount
bind
docker run --mount type=bind,src=/opt/boost,destination=/opt/boost your_container:your_tag