从当前目录运行时,Docker抱怨$ PATH

时间:2017-10-29 21:58:57

标签: docker

当我看到这个错误时,我不知道该怎么做:

container_linux.go:265: starting container process caused "exec: \".\": executable file not found in $PATH"
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \".\": executable file not found in $PATH".

我跑的时候会发生:

docker run [IMAGE_NAME] .

如何正确设置此设置以便运行我的docker容器?

1 个答案:

答案 0 :(得分:1)

您的命令不正确。当您尝试执行.时,您尝试执行[IMAGE_NAME]

docker run [IMAGE_NAME]

这可以解决您的问题。