It is possible to develop application on mac with docker without running container as root? -


i'm setting docker-compose php project on mac. mount shared volume code host machine container. obviously, not want run php container root user. do have option?

i tried:

  • changing owner of project files in dockerfile
  • changing owner in entrypoint

both methods work fine, until create file in ide - in case file appears owner root inside container , need restart container (which horrible experience development)

  • changing uid user www-data in container uid host user.

it didn't work, since files owned root


do miss points here?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -