Denton Gentry
224e60cef2
hostifo: update LXC, add Cloud Run.
Recent LXC support no longer has "lxc" in /proc/1/cgroup:
# cat /proc/1/cgroup
12:freezer:/
11:rdma:/
10:cpuset:/
9:pids:/
8:blkio:/
7:devices:/
6:perf_event:/
5:net_cls,net_prio:/
4:memory:/
3:hugetlb:/
2:cpu,cpuacct:/
1:name=systemd:/init.scope
0::/init.scope
Look for fuse.lxcfs in /proc.mounts in addition:
# grep lxc /proc/mounts
lxcfs /proc/cpuinfo fuse.lxcfs ...
lxcfs /proc/diskstats fuse.lxcfs ...
lxcfs /proc/loadavg fuse.lxcfs ...
lxcfs /proc/meminfo fuse.lxcfs ...
lxcfs /proc/stat fuse.lxcfs ...
lxcfs /proc/swaps fuse.lxcfs ...
lxcfs /proc/uptime fuse.lxcfs ...
lxcfs /sys/devices/system/cpu/online fuse.lxcfs ...
Add Knative detection by looking for the environment variables
which are part of its container contract.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-04-06 17:21:16 -07:00
..
2021-03-31 08:26:05 -07:00
2021-01-08 10:23:32 -08:00
2021-03-03 10:56:01 -08:00
2021-03-03 10:56:01 -08:00
2021-03-31 08:52:57 -07:00
2021-03-31 12:09:16 -07:00
2020-11-09 21:39:25 -08:00
2021-04-06 17:21:16 -07:00
2021-03-15 21:40:32 -07:00
2021-03-26 10:01:08 -04:00
2021-03-26 10:01:08 -04:00
2021-03-26 10:01:08 -04:00