运行:
docker run 6740371b6542 --mount
docker run 6740371b6542 --mount source=aws,target=/root/.aws/,readonly
两者都产生相同的错误:
container_linux.go:265: starting container process caused "exec: \"--mount\": executable file not found in $PATH"
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \"--mount\": executable file not found in $PATH".
有人可以解释如何将文件/文件夹从主机安装到Docker容器吗?似乎–mount是当前/最新的recommended way.
最佳答案
原文链接:/docker/532765.html