Skip to content

Migrate kill command to cobra#23297

Merged
thaJeztah merged 1 commit intomoby:masterfrom
WeiZhang555:cobra-kill
Jun 7, 2016
Merged

Migrate kill command to cobra#23297
thaJeztah merged 1 commit intomoby:masterfrom
WeiZhang555:cobra-kill

Conversation

@WeiZhang555
Copy link
Copy Markdown
Contributor

@WeiZhang555 WeiZhang555 commented Jun 6, 2016

Part of #23211

Signed-off-by: Zhang Wei [email protected]

@thaJeztah
Copy link
Copy Markdown
Member

oh! needs a rebase (sorry, lots of activity 😄)

@WeiZhang555
Copy link
Copy Markdown
Contributor Author

@thaJeztah Yep, it's true 😆 Rebased.

Comment thread api/client/container/kill.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, I forgot this one when updating context use…
@WeiZhang555 could you update this to share the context ? something like

ctx := context.Background()
for _, name := range opts.containers {
    if err := dockerCli.Client().ContainerKill(ctx, …) // …
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, I see.
I'll do that.

@WeiZhang555
Copy link
Copy Markdown
Contributor Author

@vdemeester Updated as you suggested.

@vdemeester
Copy link
Copy Markdown
Member

LGTM 🐰

@thaJeztah
Copy link
Copy Markdown
Member

LGTM!

@thaJeztah thaJeztah merged commit 4f9e2f9 into moby:master Jun 7, 2016
@WeiZhang555 WeiZhang555 deleted the cobra-kill branch June 7, 2016 14:15
dnephin pushed a commit to dnephin/docker that referenced this pull request Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants