Permission denied on docker run script

I have an app that runs in a docker container. I normally run it on bare metal running Red Hat 7. I am trying to now run it on a linode instance running CentOS7. I built the image, but when I try and run it it gets:

/bin/bash: /opt/django/CAPgraph/ Permission denied

The run script is 777:

-rwxrwxrwx. 1 root root 3109 May 25 15:41

And the shbang is:

#!/bin/bash -x

Anyone have any thoughts on what the issue could be or how I could debug it further?

2 Replies

the first thing I think of when I see permission problems on centos is selinux. Have you looked at the audit logs? I think it's /var/log/audit/audit.log

That was it. Thank you. I should have known that. I once worked with a guy who had a poster in his office that said "It's always selinux"


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct