Search code examples
linuxdockerdocker-composewindows-subsystem-for-linux

Unable to start container process: permission denied: unknown


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?


Solution

  • 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