Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

limewater23's avatar

when install livewire in sail docker, chmod (directory attributes) error: Operation not permitted

for Sail development, I use volume to keep data persistent, but volume reverts the permission to root:root for all folders and files (https://stackoverflow.com/questions/26145351/why-doesnt-chown-work-in-dockerfile), when I tried install livewire, errors happened:

 - Downloading livewire/livewire (v2.10.6)
  - Installing livewire/livewire (v2.10.6): Extracting archive
    Failed to extract livewire/livewire: (1) '/usr/bin/unzip' -qq '/var/www/html/vendor/composer/tmp-671a150cd357ce6200f26d46bd4843c5' -d '/var/www/html/vendor/composer/409acba3'

chmod (directory attributes) error: Operation not permitted
fchmod (file attributes) error: Operation not permitted
warning:  cannot set modif./access times for /var/www/html/vendor/composer/409acba3/livewire-livewire-020ad09/.all-contributorsrc
          Operation not permitted
chmod (directory attributes) error: Operation not permitted
fchmod (file attributes) error: Operation not permitted
warning:  cannot set modif./access times for /var/www/html/vendor/composer/409acba3/livewire-livewire-020ad09/.github/FUNDING.yml
          Operation not permitted
chmod (directory attributes) error: Operation not permitted
fchmod (file attributes) error: Operation not permitted
warning:  cannot set modif./access times for /var/www/html/vendor/composer/409acba3/livewire-livewire-020ad09/.github/ISSUE_TEMPLATE/bug_report.md
          Operation not permitted
fchmod (file attributes) error: Operation not permitted
warning:  cannot set modif./access times for /var/www/html/vendor/composer/409acba3/livewire-livewire-020ad09/.github/ISSUE_TEMPLATE/config.yml

Filesystem.php line 209, sail needs to do the chmod but the files all are owned by root:root, (spend hours to track down to this), so how do people use sail to solve this permission problem to install other packages?? SOS.

0 likes
0 replies

Please or to participate in this conversation.