mirror of https://github.com/minio/minio.git
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.
|
||||
func isContainerized() bool {
|
||||
// Docker containers contain ".dockerinit" at its root path.
|
||||
if _, e := os.Stat("/.dockerinit"); e == nil {
|
||||
// Docker containers contain ".dockerenv" at their root path.
|
||||
if _, e := os.Stat("/.dockerenv"); e == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue