mirror of
https://github.com/minio/minio
synced 2024-07-25 04:16:11 +00:00
isContainerized should look for /.dockerenv not /.dockerinit
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
This commit is contained in:
parent
af907a35a9
commit
ff9a6b00cc
|
@ -29,8 +29,8 @@ import (
|
||||||
|
|
||||||
// isContainerized returns true if we are inside a containerized environment.
|
// isContainerized returns true if we are inside a containerized environment.
|
||||||
func isContainerized() bool {
|
func isContainerized() bool {
|
||||||
// Docker containers contain ".dockerinit" at its root path.
|
// Docker containers contain ".dockerenv" at their root path.
|
||||||
if _, e := os.Stat("/.dockerinit"); e == nil {
|
if _, e := os.Stat("/.dockerenv"); e == nil {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue