Timedatectl execution error in Docker containers: Failed to create bus con

Timedatectl execute commands in Docker containers suggest the following error:

Pictures .png


View time in the container:

Pictures .png


Such a problem is the need to access privileged mode Docker


Solution:

When starting container: specified as follows:

docker run -it --name prod_centos-test1 -d --privileged  www.node175.com/base/prod_centos:v1 /usr/sbin/init

Description:

Start-up parameters --privileged parameters, this container given more privileges, but that there is a certain security risk

Last Seen:

Pictures .png


Guess you like

Origin blog.51cto.com/3388803/2422415