1
0
mirror of https://github.com/systemd/systemd.git synced 2025-09-17 21:45:23 +03:00

virt: detect that we are running inside the docker container

This commit is contained in:
Michal Sekletar
2014-09-09 18:14:25 +02:00
parent aa08982d62
commit 893e72da6b

View File

@@ -310,6 +310,8 @@ int detect_container(const char **id) {
_id = "lxc-libvirt"; _id = "lxc-libvirt";
else if (streq(e, "systemd-nspawn")) else if (streq(e, "systemd-nspawn"))
_id = "systemd-nspawn"; _id = "systemd-nspawn";
else if (streq(e, "docker"))
_id = "docker";
else else
_id = "other"; _id = "other";