No Práticas recomendadas para escrever o guia Dockerfiles da documentação do docker, podemos ler :
Avoid installing or using sudo since it has unpredictable TTY and signal-forwarding behavior that can cause problems. If you absolutely need functionality similar to sudo, such as initializing the daemon as root but running it as non-root), consider using “gosu”.
Minhas perguntas são:
sudo
é imprevisível? sudo
?