From 0b786cdba28e6f0db7a86077a77fa3a06fcc3bf9 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sun, 26 Oct 2014 12:05:08 -0400 Subject: src/shared/virt.c: add docker to container namespace Signed-off-by: Anthony G. Basile --- src/shared/device-nodes.c | 1 - src/shared/virt.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/shared/device-nodes.c b/src/shared/device-nodes.c index 658d3eaec3..f03fbd9d8c 100644 --- a/src/shared/device-nodes.c +++ b/src/shared/device-nodes.c @@ -19,7 +19,6 @@ #include #include -#include #include #include diff --git a/src/shared/virt.c b/src/shared/virt.c index 4b1e8c62e0..96b3f5671f 100644 --- a/src/shared/virt.c +++ b/src/shared/virt.c @@ -86,6 +86,8 @@ int detect_container(const char **id) { _id = "lxc-libvirt"; else if (streq(e, "systemd-nspawn")) _id = "systemd-nspawn"; + else if (streq(e, "docker")) + _id = "docker"; else _id = "other"; -- cgit v1.2.3-54-g00ecf