ucan-lab / docker-laravel

🐳 Build a simple laravel development environment with Docker Compose.
https://dev.to/ucan_lab/how-to-install-and-set-up-laravel-s-local-development-environment-with-docker-compose-5bcf
MIT License
1.17k stars 380 forks source link

Error response from daemon: unable to find user phper: no matching entries in passwd file #268

Closed minhkhoablieu closed 2 weeks ago

minhkhoablieu commented 4 months ago

I'm run make install with root user

It show error: Error response from daemon: unable to find user phper: no matching entries in passwd file

image

Please help me. Thanks

ucan-lab commented 3 months ago

@minhkhoablieu Please provide details of your execution environment.

This is the effect that was addressed in this issue #258 It is now possible to run it as a general user, but on the other hand, it seems that an error will occur in the Dockerfile because a root user cannot create a phper user with UID=0.

If you are in a hurry, running Docker as a general user should resolve the issue. Or, the v2.5.1 version should work, so please try this.

I will consider whether it is possible to make it work even for the root user, or whether it should be supported.

minhkhoablieu commented 3 months ago

My execution environment is:

I have created a new user, and it ran successfully, thank you.

ucan-lab commented 2 weeks ago

It's a late response, but once this PR(#277) is merged, it should be possible to build it as a root user or a non-root user.