The password of the container ubuntu is random, but I want to know what the password is and how to change it. A lot of searches on the Internet have not been resolved … please help
Obtaining this password should be meaningless to you, you do not need to log in through this password, and there is no sshd service in the mirror, so you cannot log in through ssh. Directly used from the host computer
docker exec -it <container_name> /bin/bashYou can enter bash inside the container.