Skip to content

挂载文件至容器疑问 #5

@mba1398

Description

@mba1398

使用如下命令挂载时,可以完成挂载,但是使用 docker inspect containerID 命令查看容器信息时, Mounts KEY 是空值,看不到配置信息,请问这是为什么呢?

docker run --rm -it --mount type=bind,source=/mnt/e/test.txt,target=/var/log/abc.txt ubuntu:18.04 bash

ps: 当前只有一个 ubuntu:18.04 容器是启动的。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions