Warning so that the same thing does not happen to you, be careful with the modifications you make and do it in containers that do not have anything important, I crashed the startup of a few before reaching this solution and I do not know if it will work in all cases
Hello,
I recently had the same problem, I don't know if it will be the best method, but I solved it like this. With the root user modify the file:
/lib/systemd/system/container-getty\@.service
and in the section where the ExecStart is I put it like this:
ExecStart=-/sbin/agetty --autologin...