[Lxc-users] What should 'uptime' say inside an lxc container?
Serge Hallyn
serge.hallyn at canonical.com
Mon Sep 10 18:17:22 UTC 2012
Quoting Dan Kegel (dank at kegel.com):
> 'uptime' seems to be the uptime of the host, not of the guest. Is
> that intended?
"intended", no. expected, yes. Recent lkml discussions suggest that the
proper fix for this will be to impelement a new library to sit between
/proc files (like /proc/uptime) and applications. In a container, this
could read a lxc-profiled file instead of /proc/uptime.
Work on that has not yet started though. In the past, using a fuse
filesystem which sits on top of /proc has been considered, and Daniel
even had a prototype of one for a few files. Not sure if uptime was
one of them.
-serge
More information about the lxc-users
mailing list