Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SELinux causing problems accessing the /opt/xml mount #15

Open
ia666 opened this issue Mar 22, 2021 · 0 comments
Open

SELinux causing problems accessing the /opt/xml mount #15

ia666 opened this issue Mar 22, 2021 · 0 comments

Comments

@ia666
Copy link

ia666 commented Mar 22, 2021

I ran into an issue where SELinux was blocking access to the /opt/xml mount. The Django app was displaying a debug page because it couldn't open the /opt/xml path.

To get around this problem, you can add the :z flag to the docker run command:

docker run -d --name webmap -h webmap -p 8000:8000 -v /tmp/webmap:/opt/xml:z reborntc/webmap

Details on this flag:
https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant