mirror of
https://github.com/minio/minio.git
synced 2025-04-21 19:14:39 -04: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…
x
Reference in New Issue
Block a user