I encountered two permission issues while running containers with Docker on Fedora 38. Here are the details of the problems and the solutions I applied:
1- Issue with permission to access docker.sock
When I ran the following command:
docker compose -f docker-compose.debug.yml up
I encountered the following 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"
To resolve this, I added privileged: true to the reverse-proxy YAML configuration in the docker-compose.debug.yml file.
2- Issue with permission to access source files in development container
When I ran the following command:
I encountered two permission issues while running containers with Docker on Fedora 38. Here are the details of the problems and the solutions I applied:
1- Issue with permission to access docker.sock
When I ran the following command:
I encountered the following error:
To resolve this, I added privileged: true to the reverse-proxy YAML configuration in the docker-compose.debug.yml file.
2- Issue with permission to access source files in development container When I ran the following command:
I encountered the following error:
To resolve this, I had to change
/usr/src/website
to/usr/src/website:z
everywhere in the YAML files and the command.Environment: