chalie001
asked on
root password
hi what is the root password of container where do i get it
They (root passwords) are not stored anywhere as long as you don't use your own password list or password safe.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
alternativly for lxd:
lxc shell CNAME
lxc shell CNAME