Skip to content

Commit

Permalink
Merge pull request #303 from yastij/fix-SIGSEGV-runContainer
Browse files Browse the repository at this point in the history
fixing SIGSEGV when running containers
  • Loading branch information
aaronlehmann authored Jul 6, 2017
2 parents 1aa82bc + 45b0e7c commit dfdbdab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/command/container/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,11 @@ func runContainer(dockerCli *command.DockerCli, opts *runOptions, copts *contain
}

close, err := attachContainer(ctx, dockerCli, &errCh, config, createResponse.ID)
defer close()

if err != nil {
return err
}
defer close()
}

statusChan := waitExitOrRemoved(ctx, dockerCli, createResponse.ID, copts.autoRemove)
Expand Down

0 comments on commit dfdbdab

Please sign in to comment.