After creating a docker container centos ssh login fails

After you create a running centos container, immediately log in using the ssh client tool, enter the password root, or directly enter, find login is rejected:

 

 

Solution:

Use in the container passwd command to set a good password, and then log in client tools.

 

Guess you like

Origin www.cnblogs.com/144823836yj/p/12502806.html