virt: detect that we are running inside the docker container

This commit is contained in:
Michal Sekletar
2014-10-02 17:15:17 +02:00
parent aa08982d62
commit 893e72da6b
+2
View File
@@ -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";