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:
@@ -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";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user