3 ms·
In the Dockerfile, get UID and GID as ARGs, and make sure those variables are available in your host environment. Then when creating the user in Dockerfile, use
by budhajeewa 7y ago
In the Dockerfile, get UID and GID as ARGs, and make sure those variables are available in your host environment. Then when creating the user in Dockerfile, use that UID and GID. Volumes will work like a charm.
That's what I am doing for local development setups with Docker.
See https://github.com/a2way-com/template-docker-laravel/blob/master/Dockerfile https://github.com/a2way-com/template-docker-laravel/blob/ma... and its README.
- hbogert 7y agoThat means your docker file is portable, but your images are not, which is what your parent is referring to. It's a friggin mess. It's still the same as when I started using docker.