I use it
docker pull centos
Download the image and use
useradd www
A user was added
Then
su www
Then think of root, don’t know the password. . . How should everyone know the password? . . .
Sudpasswdroot # adds a password to root. Sudo su # The password here is your ubuntu password if you are ubuntu.