📜  docker build mount volume - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:47.852000             🧑  作者: Mango

代码示例1
$ docker run -it -v "$(pwd)/source_dir:/app/target_dir" ubuntu bash
# OR
$ docker run -it --mount "type=bind,source=$(pwd)/source_dir,target=/app/target_dir" ubuntu bash