1
0
Fork 0
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:
Guillaume J. Charmes 2014-02-24 17:02:46 -08:00
parent 77f68f74c7
commit e84e344b1f
No known key found for this signature in database
GPG key ID: B33E4642CB6E3FF3

View file

@ -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)
}