You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the Infinispan server via Docker on any SELinux-enabled system, the mounted configuration file is not accessible due to SELinux restrictions. This results in a Permission denied error.
Run the docker-compose up command and notice the error java.io.FileNotFoundException: /user-config/infinispan-tracing-configuration-server.yaml (Permission denied)
Steps to Fix
Adding :Z to the volume declaration in docker-compose.yaml allows SELinux to label the file correctly:
Because the :Z flag may cause errors on other systems though, simply adding a comment to the docker-compose file could save users a bit of time of troubleshooting.
The text was updated successfully, but these errors were encountered:
Description
When running the Infinispan server via Docker on any SELinux-enabled system, the mounted configuration file is not accessible due to SELinux restrictions. This results in a
Permission denied
error.Steps to Reproduce
docker-compose.yaml
:docker-compose up
command and notice the errorjava.io.FileNotFoundException: /user-config/infinispan-tracing-configuration-server.yaml (Permission denied)
Steps to Fix
Adding :Z to the volume declaration in docker-compose.yaml allows SELinux to label the file correctly:
volumes: - ./infinispan-tracing-configuration-server.yaml:/user-config/infinispan-tracing-configuration-server.yaml:Z
Because the :Z flag may cause errors on other systems though, simply adding a comment to the docker-compose file could save users a bit of time of troubleshooting.
The text was updated successfully, but these errors were encountered: