Reputation: 2111
Suppose I have an app that does something on a timer every second. Is there a way to make the timer tick 10 times a second using Docker? So the app appears to run faster to anyone outside the Docker container.
Upvotes: 5
Views: 1294
Reputation: 2269
@David Maze's answer is great, that's exactly why I asked for more details about the timer :)
Just to add some ideas, I think there could be 2 ways to solve the problem:
Upvotes: 2
Reputation: 159040
Docker containers share the host's kernel and clock. Time is the same inside and outside the container. If a privileged container changes the time, it will change the time for the entire system. You can't make the clock in a container run at a different speed or otherwise show a different time from the host (up to time zones).
Upvotes: 2