How to set time from inside container

Greetings @Kacper,

Just to understand better. What exactly is the goal here?

Are you trying to sync the in-container time to the host system time?

or

Are you trying to dynamically changing the entire host system time from inside the container?

Is changing the time something you’ll only do once? Or will the app/system be changing the time multiple times through operation?

As a reference here’s a similar question here: Setting local time zone in Torizon containers

However this involves setting the time from outside of the container rather than inside the container. As for setting time from inside a container dynamically this might be tricker without using --privileged see this external thread for reference: https://serverfault.com/questions/824631/how-to-set-system-time-dynamically-in-a-docker-container

But let me know what you’re trying to do and we can discuss possible solutions.

Best Regards,
Jeremias