by derriz · 7y ago · 0 comments
Otherwise you can hard code a UID when creating the user in the Dockerfile but that means your containers aren't generally portable.
In the end, the path of least resistance is to run as root within the container and simply accept the security implications if using volumes.
That's what I am doing for local development setups with Docker.
See https://github.com/a2way-com/template-docker-laravel/blob/ma... and its README.