Closed cgrima closed 5 years ago
What OS are you running? Are you running SELinux?
Fedora Server 30 with kernel 5.2.15. And yes, SELinux is enabled and enforced.
Also, how did you install docker?
Whao! Tough question. That was a while ago. It's actually possible that Docker was preinstalled with Fedora Server. If not, it's been done through dnf. I'm running a couple of other Linuxerserver images (Radarr, Sonarr), but never had this issue. Those containers have beem running for some time now, though. Maybe a Fedora update enforced some rules since.
Only reason I mention it is we've seen funky errors happen when using distro provided versions of docker. We always recommend installing via their https://get.docker.com script.
SELinux would cause an issue. You can confirm this by temporarily disabling it: sudo setenforce 0
and try spinning up the stack again. Re-enable it with sudo setenforce 1
.
I'd bet money that it's SELinux.
You got it right. Disabling SELinux fixes it. Although I have to keep it disabled since sudo setenforce 1
does not allow to navigate the website neither.
@cgrima You can have it enabled with docker, but you need to set your config mounts to the proper context.
Issue
Container fails at creating directory during initialization. Thanks for your help.
System
Local volumes ownership
Owner UID and GID
Docker file
Logs