remote-android / redroid-doc

redroid (Remote-Android) is a multi-arch, GPU enabled, Android in Cloud solution. Track issues / docs here
4.32k stars 311 forks source link

Why does changing the time in the phone or in the docker container affect the host? #773

Open hjxcode opened 1 month ago

hjxcode commented 1 month ago

为什么我在手机内修改时间或者在手机docker容器内修改时间,会影响到宿主机?

hjxcode commented 1 month ago

我发现,这可能是由于docker启动时添加了--privileged导致的,但当我去掉--privileged时,redroid无法正常启动。这个如何解决呢?

zhouziyang commented 3 weeks ago

CLOCK_REALTIME is shared even with different time namespace.

FYI: https://www.man7.org/linux/man-pages/man7/time_namespaces.7.html

hjxcode commented 3 weeks ago

CLOCK_REALTIME is shared even with different time namespace.

FYI: https://www.man7.org/linux/man-pages/man7/time_namespaces.7.html

Does that mean that if I change the time in the container, the host's time will inevitably change? Even if I don't use the --privileged parameter?