Skip to content

container-driver: avoid hanging on container panic#1772

Merged
tonistiigi merged 1 commit intodocker:masterfrom
tonistiigi:container-hang-fix
May 9, 2023
Merged

container-driver: avoid hanging on container panic#1772
tonistiigi merged 1 commit intodocker:masterfrom
tonistiigi:container-hang-fix

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

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

var counter int64
opts = append(opts, client.WithContextDialer(func(context.Context, string) (net.Conn, error) {
if atomic.AddInt64(&counter, 1) > 1 {
return nil, net.ErrClosed
Copy link
Copy Markdown
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
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.

2 participants