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:
parent
aa08982d62
commit
893e72da6b
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user