Docker using gosu vs USER

后端 未结 3 1587
难免孤独
难免孤独 2021-01-30 02:29

Docker kind of always had a USER command to run a process as a specific user, but in general a lot of things had to run as ROOT.

I have see

3条回答
  •  不思量自难忘°
    2021-01-30 02:34

    Advantage of using gosu is also signal handling. You may trap for instance SIGHUP for reloading the process as you would normally achieve via systemctl reload or such.

提交回复
热议问题