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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -