mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #815 from sammyshj/removedockerinit
Removed dockerinit reference
This commit is contained in:
commit
bade8d63ae
1 changed files with 1 additions and 1 deletions
|
@ -157,6 +157,6 @@ func isPacketForwardingEnabled(ipVer ipVersion, iface string) (bool, error) {
|
|||
}
|
||||
|
||||
func isRunningInContainer() bool {
|
||||
_, err := os.Stat("/.dockerinit")
|
||||
_, err := os.Stat("/.dockerenv")
|
||||
return !os.IsNotExist(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue