mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update dockerfile_best-practices.md
Signed-off-by: Thell Fowler <Thell@tbfowler.name>
This commit is contained in:
parent
18d8fe1249
commit
cb3be586d6
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ like `RUN groupadd -r postgres && useradd -r -g postgres postgres`.
|
||||||
> rebuilds. So, if it’s critical, you should assign an explicit UID/GID.
|
> rebuilds. So, if it’s critical, you should assign an explicit UID/GID.
|
||||||
|
|
||||||
You should avoid installing or using `sudo` since it has unpredictable TTY and
|
You should avoid installing or using `sudo` since it has unpredictable TTY and
|
||||||
signal-forwarding behavior that can cause more more problems than it solves. If
|
signal-forwarding behavior that can cause more problems than it solves. If
|
||||||
you absolutely need functionality similar to `sudo` (e.g., initializing the
|
you absolutely need functionality similar to `sudo` (e.g., initializing the
|
||||||
daemon as root but running it as non-root), you may be able to use
|
daemon as root but running it as non-root), you may be able to use
|
||||||
[“gosu”](https://github.com/tianon/gosu).
|
[“gosu”](https://github.com/tianon/gosu).
|
||||||
|
|
Loading…
Reference in a new issue