Hi !<div>Uptime shows the kernel uptime, and since the container doesn't spawn it's own kernel, the uptime command won't show the container uptime.</div><div>Maybe, the uptime of container's init process will show you uptime of the container (so is accessible from within the container).</div>
<div><br></div><div>--</div><div>Samuel<br><br><div class="gmail_quote">On Thu, May 3, 2012 at 5:52 PM, Ulli Horlacher <span dir="ltr"><<a href="mailto:framstag@rus.uni-stuttgart.de" target="_blank">framstag@rus.uni-stuttgart.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
"uptime" in a container shows the uptime of the host.<br>
How can one query the uptime of the container?<br>
<br>
<br>
--<br>
Ullrich Horlacher Server- und Arbeitsplatzsysteme<br>
Rechenzentrum E-Mail: <a href="mailto:horlacher@rus.uni-stuttgart.de">horlacher@rus.uni-stuttgart.de</a><br>
Universitaet Stuttgart Tel: <a href="tel:%2B%2B49-711-685-65868" value="+4971168565868">++49-711-685-65868</a><br>
Allmandring 30 Fax: <a href="tel:%2B%2B49-711-682357" value="+49711682357">++49-711-682357</a><br>
70550 Stuttgart (Germany) WWW: <a href="http://www.rus.uni-stuttgart.de/" target="_blank">http://www.rus.uni-stuttgart.de/</a><br>
REF: <<a href="mailto:20120503155228.GA1950@rus.uni-stuttgart.de">20120503155228.GA1950@rus.uni-stuttgart.de</a>><br>
<br>
------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>
Lxc-users mailing list<br>
<a href="mailto:Lxc-users@lists.sourceforge.net">Lxc-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>
</blockquote></div><br></div>