1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +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";
else if (streq(e, "systemd-nspawn"))
_id = "systemd-nspawn";
else if (streq(e, "docker"))
_id = "docker";
else
_id = "other";