docker open privileged mode

Privileged mode can be turned on by --privileged = true when you create the container.

Create a container:

# Docker run -d --name centos7 --privileged = true centos7: last / usr / sbin / init
into the container:

# Docker exec -it centos7 / bin / bash
so you can use systemctl start the service.

Guess you like

Origin www.cnblogs.com/firebirdweb/p/10967674.html