Skip to content

Commit

Permalink
fix #2857
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 932c6ec commit a42a398
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (cc *CreateCommand) runCreate(args []string) error {
return fmt.Errorf("failed to create container: %v", err)
}
config.ContainerConfig.OpenStdin = cc.openstdin

// collect all the environment variables for the container
config.Env, err = readKVStrings(cc.envfile, cc.env)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (rc *RunCommand) runRun(args []string) error {
if err != nil {
return fmt.Errorf("failed to run container: %v", err)
}

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

0 comments on commit a42a398

Please sign in to comment.