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
I using docker-compose to manage containers. When I run composer install in the vendor directory, all subfolders are created with the root owner. I can't delete them after that. How do I create folders under another user ?
`
version: '3'
Have you tried running the container with a non-root user? It's mentioned in the docs.
In docker-composer.yml you'd need to do sth like:
composer:
# ...user: ${CURRENT_UID}
You'll need to then export the CURRENT_UID environment variable so it's known to docker-compose. For example: CURRENT_UID=$(id -u):$(id -g) docker-compose up -d.
I using docker-compose to manage containers. When I run composer install in the vendor directory, all subfolders are created with the root owner. I can't delete them after that. How do I create folders under another user ?
`
version: '3'
services:
`
The text was updated successfully, but these errors were encountered: