Docker installation failing on fedora - mkdir Permission denied

Hello everyone,

I have been trying to desperatly to get seafile server going on my fedora server machine. I have downloaded the docker-compose.yml, adjusted the required fields ran the machine. Nothing changed, however, so I glanced at the logs (docker container logs seafile), which keeps showing me this result:

mkdir: cannot create directory ‘/shared/seafile’: Permission denied
mkdir: cannot create directory ‘/shared/logs/’: Permission denied
mkdir: cannot create directory ‘/shared/nginx’: Permission denied
*** /etc/my_init.d/01_create_data_links.sh failed with status 1

*** Killing all processes...

I tried to relocate the volumes from /opt/ to /mnt/ to no avail. I also tried to chmod 777 every directory that seemed relevant, also to no avail. I just now tried to get to docker version running in a VM, which worked out of the box with no changes made to anything. Where am I going wrong? I feel like the problem is either docker or my OS.

I am currently running

  • kernel 6.6.3-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 28 19:11:52 UTC 2023 x86_64 GNU/Linux
  • docker docker-ce-24.0.7-1.fc39.src.rpm
  • (downgraded) containerd containerd-1.6.19-2.fc39.x86_64.rpm, because the newest version kept throwing errors for several people for several different containers.

Things I tried so far:

  • adding user: root to docker compose
  • relocate volumes from opt to mnt
  • adjusting permissions to 777 for given directories
  • deleting the image and pulling it fresh
  • changing the owner of affected directories to root:docker
  • running docker-compose up -d as root instead of sudo