Skip to content

Commit

Permalink
feature: cli supports --env-file
Browse files Browse the repository at this point in the history
Signed-off-by: Lang Chi <21860405@zju.edu.cn>
  • Loading branch information
lang710 committed May 27, 2019
1 parent a42a398 commit b6d7d51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type container struct {
volumesFrom []string
runtime string
env []string
envfile []string
envfile []string
entrypoint string
workdir string
user string
Expand Down
2 changes: 1 addition & 1 deletion cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (rc *RunCommand) runRun(args []string) error {

// collect all the environment variables for the container
config.Env, err = readKVStrings(rc.envfile, rc.env)
if err != nil{
if err != nil {
return nil
}

Expand Down

0 comments on commit b6d7d51

Please sign in to comment.