diff --git a/host/host_linux.go b/host/host_linux.go index 53242584..8f6e02f6 100644 --- a/host/host_linux.go +++ b/host/host_linux.go @@ -113,6 +113,9 @@ func BootTimeWithContext(ctx context.Context) (uint64, error) { if system == "lxc" && role == "guest" { // if lxc, /proc/uptime is used. statFile = "uptime" + } else if system == "docker" && role == "guest" { + // also docker, guest + statFile = "uptime" } filename := common.HostProc(statFile)