1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/sysinfo
Sebastiaan van Stijn 66bb1c4644
pkg/sysinfo: use containerd/sys to detect UserNamespaces
The implementation in libcontainer/system is quite complicated,
and we only use it to detect if user-namespaces are enabled.

In addition, the implementation in containerd uses a sync.Once,
so that detection (and reading/parsing `/proc/self/uid_map`) is
only performed once.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-06-15 13:07:48 +02:00
..
cgroup2_linux.go pkg/sysinfo: use containerd/sys to detect UserNamespaces 2020-06-15 13:07:48 +02:00
numcpu.go Add canonical import comment 2018-02-05 16:51:57 -05:00
numcpu_linux.go Use functions from x/sys/unix to get number of CPUs on Linux 2019-06-18 19:26:56 +02:00
numcpu_windows.go Use functions from x/sys/unix to get number of CPUs on Linux 2019-06-18 19:26:56 +02:00
README.md
sysinfo.go cgroup2: implement docker info 2020-04-17 07:20:01 +09:00
sysinfo_linux.go pkg/sysinfo/sysinfo_linux.go: fix some comments 2020-05-22 13:13:27 -07:00
sysinfo_linux_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
sysinfo_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
sysinfo_unix.go cgroup2: implement docker info 2020-04-17 07:20:01 +09:00
sysinfo_windows.go cgroup2: implement docker info 2020-04-17 07:20:01 +09:00

SysInfo stores information about which features a kernel supports.