mirror of
https://github.com/docker/cli.git
synced 2026-08-30 18:14:19 -05:00
500a2c5aa9456e81127a4fe34e7ae48976eef101
Specifically, Ubuntu Precise's cgroup-lite script uses mount -n to mount the cgroup filesystems so they don't appear in mtab, so detection always fails unless the admin updates mtab with /proc/mounts. /proc/mounts is valid on just about every Linux machine in existence and as a bonus is much easier to parse. I also removed the regex in favor of a more accurate parser that should also support monolitic cgroup mounts (e.g. mount -t cgroup none /cgroup). Upstream-commit: c6119da33925fccf6af3f232f7aa7c75de41493b Component: engine
Languages
Go
92.3%
Shell
5.4%
Dockerfile
1.1%
Go-Checksums
0.7%
Makefile
0.3%
Other
0.2%