Don't remove the container= environment variable, as it is crucial for a lot of tools to detect, whether they're run inside an LXC container or not.

Upstream-commit: e5e47c98629f9e81ea24d2784e04863d614d34f5
Component: engine
This commit is contained in:
Elias Probst
2013-07-02 19:13:37 +02:00
parent a189f7d618
commit f94dc93764

View File

@ -60,9 +60,6 @@ func cleanupEnv(env ListOpts) {
if len(parts) == 1 {
parts = append(parts, "")
}
if parts[0] == "container" {
continue
}
os.Setenv(parts[0], parts[1])
}
}