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

php - Cannot override Laravel Spark authentication with own implementation -

What is happening when Matlab is starting a "parallel pool"? -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -