Skip to content

setfacl: ... Not supported when using Docker on OSX #75

@simongroenewolt

Description

@simongroenewolt

I've created a fresh project using

composer create-project bolt/project myproject "2.0.0-beta.6.1"

When running

docker compose up

I get the following errors:

php_1 | setfacl: config: Not supported
php_1 | setfacl: config/bolt: Not supported
php_1 | setfacl: config/bolt/config.yaml: Not supported
php_1 | setfacl: config/bolt/contenttypes.yaml: Not supported
php_1 | setfacl: config/bolt/menu.yaml: Not supported
php_1 | setfacl: config/bolt/permissions.yaml: Not supported
php_1 | setfacl: config/bolt/taxonomy.yaml: Not supported
php_1 | setfacl: config/bundles.php: Not supported
php_1 | setfacl: config/checkpoint.txt: Not supported
php_1 | setfacl: config/extensions: Not supported

and the php container fails to start.

I think these errors are caused by the setfacl calls on these lines in docker/php/docker-entrypoint.sh

setfacl -R -m u:www-data:rwX -m u:"$(whoami)":rwX config public/files public/theme public/thumbs var
setfacl -dR -m u:www-data:rwX -m u:"$(whoami)":rwX config public/files public/theme public/thumbs var

Simple workaround could be commenting those lines when using osx as a host, although that might lead to other issues down the road.

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