23 lines
734 B
Diff
23 lines
734 B
Diff
From 893e72da6b27c21b102e1589276e651e9e4f591c Mon Sep 17 00:00:00 2001
|
|
From: Michal Sekletar <msekleta@redhat.com>
|
|
Date: Tue, 9 Sep 2014 18:14:25 +0200
|
|
Subject: [PATCH] virt: detect that we are running inside the docker container
|
|
|
|
---
|
|
src/shared/virt.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/shared/virt.c b/src/shared/virt.c
|
|
index b4368952ff..f9c4e67c74 100644
|
|
--- a/src/shared/virt.c
|
|
+++ b/src/shared/virt.c
|
|
@@ -310,6 +310,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";
|
|
|