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

nerdctl wait command #162

Merged
merged 1 commit into from
Apr 13, 2021
Merged

Conversation

fahedouch
Copy link
Member

Signed-off-by: fahed dorgaa fahed.dorgaa@gmail.com

@fahedouch fahedouch changed the title wait command [WIP] wait command Apr 10, 2021
@fahedouch fahedouch changed the title [WIP] wait command [WIP] nerdctl wait command Apr 10, 2021
@fahedouch fahedouch changed the title [WIP] nerdctl wait command nerdctl wait command Apr 11, 2021
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 {
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

container_wait.go Outdated Show resolved Hide resolved
wait_test.go Outdated Show resolved Hide resolved
@AkihiroSuda
Copy link
Member

Could you also update README (https://github.com/containerd/nerdctl#unimplemented-docker-commands) ?

@fahedouch
Copy link
Member Author

Could you also update README (https://github.com/containerd/nerdctl#unimplemented-docker-commands) ?

@AkihiroSuda if all is ok then I will squash commit!

README.md Show resolved Hide resolved
container.go Outdated Show resolved Hide resolved
wait.go Outdated Show resolved Hide resolved
wait.go Outdated Show resolved Hide resolved
wait.go Outdated Show resolved Hide resolved
wait_test.go Outdated Show resolved Hide resolved
wait_test.go Outdated Show resolved Hide resolved
wait_test.go Outdated Show resolved Hide resolved
wait.go Outdated Show resolved Hide resolved
wait.go Outdated Show resolved Hide resolved
wait.go Outdated Show resolved Hide resolved
wait_test.go Outdated Show resolved Hide resolved
wait.go Outdated Show resolved Hide resolved
wait_test.go Outdated Show resolved Hide resolved
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit 9b8bb8d into containerd:master Apr 13, 2021
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