部署Golang项目时候创建容器,一旦选择了-v挂载目录就会报错docker run --name xien-sdk -d -v /opt/1panel/apps/openresty/openresty/www/sites/sdk/index:/www/sites/sdk/index --network 1panel-network -p 8093:8093 golang:1.22.3 /www/sites/sdk/index/main
55d5fac1bc05dfbac7a288a41d294c58eb9327b9a92fccbee3d4b7a28ed0b1d6
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: “/www/sites/sdk/index/main”: stat /www/sites/sdk/index/main: no such file or directory: unknown.
确认一下挂载目录和目录权限是否都正确。