I have been facing this problem for a long time now. Whenever I try to install anything on docker during build, that requires interactive install, the build "hangs" at the interaction screen. For example, for a particular project, I needed to install sddm
in docker (Yeah, yeah I know I am stupid). Now, the build simply hangs at the step wherein I am supposed to select my keyboard layout. How do I go about such problems?
PS: Not all installation scripts are shell scripts that can be modified (like apt install sddm -y
).
PS: spawn
and echo
is not always helpful.
Well, the answer was pretty easy actually. The ENV variable was to be set properly
ENV DEBIAN_FRONTEND=noninteractive