Reputation: 4719
I am executing a docker-compose up
in WSL
for an image I have build and I get this error:
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/my_path/my_shell_script": permission denied: unknown
I have found some suggestions in a couple of questions like this where they say to change the permission on the directory which I try to access but it didnt work, I still get the same error. Any idea how I can address this?
Upvotes: 3
Views: 16787
Reputation: 4719
ok it was a permissions problem, probably related to the user because when I simply changed the permissions just for the user to :
chmod u+x /my_path/my_shell_script
it did not work but when I did it for all users:
chmod a+x /my_path/my_shell_script
it solved the permission issue
Upvotes: 9