ForestAdmin / lumber

Install Forest Admin in minutes.
https://www.forestadmin.com
MIT License
2.08k stars 106 forks source link

Consider adding the Z SELinux label to the docker installation script #580

Open adarah opened 3 years ago

adarah commented 3 years ago

Context:

Expected behavior

The docker setup script provided by the website should work.

Actual behavior

I get the EACCES error when running the script.

Failure Logs

Error: EACCES: permission denied, mkdir '/usr/src/app/my-project-name'

Context

I'm installing ForestAdmin for the first time using the docker container installation on a SELinux machine (Fedora 34). Fedora34 uses podman instead of Docker.

I was getting this EACCES error due to the docker script trying to edit my host machine via this bind mount (-v `pwd`:/usr/src/app). On SELinux, the Z label is required for this to work. https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label

With the flag, the installation seems to have worked, but I just thought I should let you guys know.