-
Notifications
You must be signed in to change notification settings - Fork 604
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
nerdctl wait command #162
nerdctl wait command #162
Conversation
container_wait.go
Outdated
walker := &containerwalker.ContainerWalker{ | ||
Client: client, | ||
OnFound: func(ctx context.Context, found containerwalker.Found) error { | ||
if err := waitContainer(clicontext, ctx, client, found.Container.ID()); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nerdctl wait foo bar
may not be able to print the status of bar
when bar
exits and gets removed before foo
exits.
So task.Wait()
should be called in goroutines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Could you also update README (https://github.com/containerd/nerdctl#unimplemented-docker-commands) ? |
@AkihiroSuda if all is ok then I will squash commit! |
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Signed-off-by: fahed dorgaa fahed.dorgaa@gmail.com