1
0
Fork 0
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:
Thell 'Bo' Fowler 2015-01-31 11:02:09 -06:00
parent 18d8fe1249
commit cb3be586d6

View file

@ -359,7 +359,7 @@ like `RUN groupadd -r postgres && useradd -r -g postgres postgres`.
> rebuilds. So, if its critical, you should assign an explicit UID/GID. > rebuilds. So, if its 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).