mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Use the dockerenv file from the current dir instead of root
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume.charmes@docker.com> (github: creack)
This commit is contained in:
parent
77f68f74c7
commit
e84e344b1f
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ func SysInit() {
|
|||
|
||||
// Get env
|
||||
var env []string
|
||||
content, err := ioutil.ReadFile("/.dockerenv")
|
||||
content, err := ioutil.ReadFile(".dockerenv")
|
||||
if err != nil {
|
||||
log.Fatalf("Unable to load environment variables: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue