Skip to content

Permission denied: access to / denied with overlayfs #467

@11bis

Description

@11bis

tag 5.3.2

Hello,
Deployment on Debian 13.1 / Docker 29.0.4 / Storage Driver: "overlayfs" fails with "Permission denied: access to / denied" error message.
Steps to reproduce:

  • docker-compose.yml
services:
  mariadb:
    image: mariadb:11.8.5
    environment:
      MARIADB_ROOT_PASSWORD: notSecureChangeMe

  phpmyadmin:
    image: phpmyadmin:5.2.3
    ports:
     - "8081:80"
    environment:
      - PMA_ARBITRARY=1
  • docker compose up -d
  • "docker exec -it test-phpmyadmin-1 ls -la /var/www/html" shows following permissions
drwxr-x---  1 root root   4096 Feb 19 11:08 ..
-r--r-----  1 root root     20 Feb 19 11:08 .rtlcssrc.json
-r--r-----  1 root root  22805 Feb 19 11:08 ChangeLog
...

Since apache server is running as "www-data", it does not have access to /var/www/html.

I noticed that there is no issue when Docker is configured with legacy Storage Driver: "overlay2"

drwxr-xr-x  1 root     root       4096 Sep 29 23:50 ..
-r--r--r--  1 www-data www-data     20 Oct  7 20:40 .rtlcssrc.json
-r--r--r--  1 www-data www-data  22805 Oct  7 20:40 ChangeLog
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions