Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

container-driver: avoid hanging on container panic #1772

Merged
merged 1 commit into from
May 9, 2023

Conversation

tonistiigi
Copy link
Member

When buildkit container dies with sigkill while the progress is streaming, it could have left the progress hanging.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
opts = append(opts, client.WithContextDialer(func(context.Context, string) (net.Conn, error) {
if atomic.AddInt64(&counter, 1) > 1 {
return nil, net.ErrClosed
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just for cleaner error handling. It would work without it as well.

@tonistiigi tonistiigi added this to the v0.11.0 milestone May 4, 2023
@tonistiigi tonistiigi merged commit 4fa7cd1 into docker:master May 9, 2023
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants