cambiar o establecer contraseña interactivamente en Linux
#Eventually, I decided to rebuild my Docker images, so that I change the root password by something I will know.
RUN echo 'root:Docker!' | chpasswd
#or
RUN echo 'Docker!' | passwd --stdin root
DreamCoder