On Mon, 13 Jun 2016 at 20:09, Daniel Baumann <
daniel.baum...@progress-technologies.com> wrote:

> when using 'uptime' in containers (regardless what kind of containers),
> it shows the uptime of the host system rather than the one of the
> container.
>
> What we used locally here is to look at /dev/pts:
>
ps -o etimes 1 will do it too

The upstream libproc2 now has a feature of providing container uptime and
both w and uptime have the option either as a command line or environment
variable.

 - Craig

Reply via email to