I'm a noob in both Docker and Linux and studying a Dockerfile from a shared project I work on. Something I don't understand-- at the top of the Dockerfile we have:
# Never prompts the user for choices on installation/configuration of packages
ENV DEBIAN_FRONTEND=noninteractive
But then in a whole series of later Docker RUN commands, I see that -yqq is appended to all the apt-get commands: apt-get {install,update,upgrade} -yqq .... Since -yqq is supposed to automatically answer questions for apt-get and make it silent, I'm confused as to whether it's redundant. But I'm having a hard time finding straightforward answers, so here are some questions:
- Does
apt-getdirectly read the value ofDEBIAN_FRONTENDand set options accordingly? - Are
-yand-qqredundant for one or more ofapt-get {install,update,upgrade}ifDEBIAN_FRONTEND=noninteractiveis set?