mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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.
This commit is contained in:
parent
1c5083315d
commit
e5e47c9862
1 changed files with 0 additions and 3 deletions
|
@ -60,9 +60,6 @@ func cleanupEnv(env ListOpts) {
|
||||||
if len(parts) == 1 {
|
if len(parts) == 1 {
|
||||||
parts = append(parts, "")
|
parts = append(parts, "")
|
||||||
}
|
}
|
||||||
if parts[0] == "container" {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
os.Setenv(parts[0], parts[1])
|
os.Setenv(parts[0], parts[1])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue