Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

[Bugreport] cannot start with selinux #17

Open
vrqq opened this issue Feb 22, 2019 · 0 comments
Open

[Bugreport] cannot start with selinux #17

vrqq opened this issue Feb 22, 2019 · 0 comments

Comments

@vrqq
Copy link

vrqq commented Feb 22, 2019

RHEL 7.6 Maipo (3.10.0-957.5.1.el7.x86_64)

There is a problem with the selinux policy. I just create a container by the introduction but it failed to run, with the information like 'Permission Denied'. And it's working by using the configuration below.

SELinux details

SELinux is preventing /bin/busybox from write access on the directory conf.
Source Context                system_u:system_r:container_t:s0:c190,c693
Target Context                system_u:object_r:user_home_t:s0

With SELinux policy, ':z' should be appended to the bind option.

sudo docker run -d \
--name aria2-with-webui \
-p 6800:6800 \
-p 6880:80 \
-p 6888:8080 \
-v /DOWNLOAD_DIR:/data:z \
-v /CONFIG_DIR:/conf:z \
-e SECRET=YOUR_SECRET_CODE \
xujinkai/aria2-with-webui

You may need to update the README.
see also : https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label

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

No branches or pull requests

1 participant