diff options
author | Michal Sekletar <msekleta@redhat.com> | 2014-09-09 18:14:25 +0200 |
---|---|---|
committer | Michal Sekletar <msekleta@redhat.com> | 2014-10-02 17:15:17 +0200 |
commit | 893e72da6b27c21b102e1589276e651e9e4f591c (patch) | |
tree | 037b99d535cb00e2fe24cf52062b9662f6512d06 /src/shared/virt.c | |
parent | aa08982d62cf45b59ea6a06c915391f5db1fb86e (diff) |
virt: detect that we are running inside the docker container
Diffstat (limited to 'src/shared/virt.c')
-rw-r--r-- | src/shared/virt.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"; |