[systemd-commits] src/shared

Michal Sekletar msekleta at kemper.freedesktop.org
Thu Oct 2 08:15:31 PDT 2014


 src/shared/virt.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 893e72da6b27c21b102e1589276e651e9e4f591c
Author: Michal Sekletar <msekleta at redhat.com>
Date:   Tue Sep 9 18:14:25 2014 +0200

    virt: detect that we are running inside the docker container

diff --git a/src/shared/virt.c b/src/shared/virt.c
index b436895..f9c4e67 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";
 



More information about the systemd-commits mailing list