Docker for Mac OSX:无法访问安装的卷
我试图运行一个docker集装箱
docker run -d -p 9088:9088 --name abc -h abc -v /some/location:/some/location artifactory/abc
/some/location
有一个容器将执行的脚本。 上面的命令给我错误
docker: Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused "exec: \"/some/location/myScript\": stat /some/location/myScript: no such file or directory".
但是当我这样做
sudo docker run -d -p 9088:9088 --name abc -h abc -v /some/location:/some/location artifactory/abc
容器启动并运行得很好。 但是我不想使用sudo,因为我没有使用任何其他容器。 我只是想运行它作为docker工人。 我怎么做? 请注意,我有
chmod 777 /some/location
那么为什么不能myScript
访问myScript
?