We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a220c7f commit 89f7e8dCopy full SHA for 89f7e8d
cli/clistat/container_linux.go
@@ -10,9 +10,11 @@ import (
10
"golang.org/x/xerrors"
11
)
12
13
-var isContainerizedCacheOK atomic.Bool
14
-var isContainerizedCacheErr atomic.Error
15
-var isContainerizedCacheOnce sync.Once
+var (
+ isContainerizedCacheOK atomic.Bool
+ isContainerizedCacheErr atomic.Error
16
+ isContainerizedCacheOnce sync.Once
17
+)
18
19
// IsContainerized returns whether the host is containerized.
20
// This is adapted from https://github.com/elastic/go-sysinfo/tree/main/providers/linux/container.go#L31
0 commit comments