Link to home
Start Free TrialLog in
Avatar of chalie001
chalie001

asked on

root password

hi what is the root password of container where do i get it


Avatar of ste5an
ste5an
Flag of Germany image

They (root passwords) are not stored anywhere as long as you don't use your own password list or password safe.
Avatar of noci
noci

A container in most cases has no passwords. In the case of docker the container is more or less ephemeral...
Then again any password (if present) in a linux system is in /etc/shadow, of in some NIS or LDAP accessible service.

It is hashed with a solid hashing schema,, unless  the last password change was over 10 years ago...

Most dockers have NO concept of logging in, or ssh access etc. the service are not there.
some dockers are created in a way that allows   docker exec /bin/sh.....    from a host command line with sufficient privileges or access rights.
and even that is not possible in dockers.

LXD might provide a more "lightweight" VM experience.

ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
alternativly for lxd: 
lxc shell CNAME