Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora: Improve Docker build environment compatibility #3737

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Commits on Sep 18, 2023

  1. Fix dev environment Traefik crashes on Fedora

    The problem is that in SELinux enforcing distributions, access to
    `docker.sock` is restricted in containers even if DAC permissions
    supposedly allow access. This causes endless log lines when invoking
    `docker-compose up` similar to the following:
    
        time="2023-09-18T04:10:56Z" level=error msg="Failed to retrieve information of the docker client and server host: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
    
    The solution is to run the Traefik container in privileged mode. See
     https://stackoverflow.com/a/30368817/1198896.
    strugee committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    735f3d1 View commit details
    Browse the repository at this point in the history
  2. Fix SELinux errors in dev environment

    Before this patch running `ls` inside the `photoprism_1` container
    returned EACCES.
    strugee committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    bff38c6 View commit details
    Browse the repository at this point in the history