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
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
strugee committed Sep 18, 2023
commit 735f3d118673edcde5c32de6dc905d746e065257
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ services:
## Docs: https://doc.traefik.io/traefik/
traefik:
image: photoprism/traefik:latest
privileged: true
ports:
- "80:80" # HTTP (redirects to HTTPS)
- "443:443" # HTTPS (required)
Expand Down