aria2-with-webui icon indicating copy to clipboard operation
aria2-with-webui copied to clipboard

[Bugreport] cannot start with selinux

Open vrqq opened this issue 6 years ago • 0 comments

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

vrqq avatar Feb 22 '19 15:02 vrqq