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
1 changed files with 1 additions and 1 deletions

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