Is there a way to avoid login when using --privileged to run a docker container

163 Views Asked by At

I'm using a docker of image centos:7.9.2009, is there a way to avoid login when using --privileged=true to run a container? Here is the command:

docker run -d --privileged=true -v /sys/fs/cgroup:/sys/fs/cgroup --name centos_base centos:7.9.2009 /usr/sbin/init

enter image description here

0

There are 0 best solutions below