Avatar of chalie001
chalie001
 asked on

root password

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


DockerLinuxLinux Distributions* containersLXC

Avatar of undefined
Last Comment
noci

8/22/2022 - Mon
ste5an

They (root passwords) are not stored anywhere as long as you don't use your own password list or password safe.
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
David Favor

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
noci

alternativly for lxd: 
lxc shell CNAME

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck