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
That is because volumes created at runtime by docker-compose (only if they do not exist yet) are created by root, and not as the user that will end up running the process in the container.
To share composer cache between multiple runs I use your example with an additional volume for the cache:
As the folder /tmp/cache doesn't exists, docker creates it with
drwxr-xr-x
so it's not writable by the user running the composer command.To avoid this, I create an empty
/tmp/cache
folderThe text was updated successfully, but these errors were encountered: