Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 719
KZiovas Avatar asked Nov 30 '25 19:11

KZiovas


1 Answers

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

like image 165
KZiovas Avatar answered Dec 02 '25 08:12

KZiovas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!