Per container uptime?
Hi,
after reading that post [1] on serverfault, I was wondering whether it would make sense to implement a per container uptime.
Do you think it makes sense at all?
Any hint on how to get started on that?
Thanks
Fran?ois
[1] http://serverfault.com/questions/830643/uptime-command-gives-weird-results-in-a-docker-image
Quoted 1 line · Fran?ois
Do you think it makes sense at all?
The bigger question is whether there's stuff that runs in a container that wants the system uptime, which would break under this API change.
Quoted 1 line
Any hint on how to get started on that?
It's trivial - note the uptime at container creation, stash the value
in the container struct, and subtract when an uptime request happens.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 484 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170413/7f4ed2c1/attachment.bin