Skip to content

Conversation

calavera
Copy link
Contributor

@calavera calavera commented Jul 28, 2015

Return an error when the container is stopped only in api versions
equal or greater than 1.20 (docker 1.8).

Signed-off-by: David Calavera david.calavera@gmail.com

@thaJeztah
Copy link
Member

Updated the issue number, I think this is the one you meant.

@@ -87,3 +89,12 @@ func (s *DockerSuite) TestKillWithInvalidSignal(c *check.C) {
c.Fatal("Container should be in running state after an invalid signal")
}
}

func (s *DockerSuite) TestKillofStoppedContainerOldAPI(c *check.C) {
Copy link
Member

Choose a reason for hiding this comment

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

instead of OldApi, can we specify either 119 or Pre120

@cpuguy83
Copy link
Member

@thaJeztah issue number now refers to this PR

LGTM other than being specific about API versions in the test name.

@thaJeztah
Copy link
Member

@cpuguy83 oh darn! the previous number was a non existing issue, but was 10000 off of the PR that introduced this. Probably had the wrong issue on my clipboard, I'll search the right one.

@thaJeztah
Copy link
Member

third time's a charm, think I got the right one now. Thanks Brian

Return an error when the container is stopped only in api versions
equal or greater than 1.20 (docker 1.8).

Signed-off-by: David Calavera <david.calavera@gmail.com>
@calavera calavera force-pushed the backwards_compat_kill_error branch from b58f9c7 to 621e3d8 Compare July 28, 2015 19:25
@calavera
Copy link
Contributor Author

Test name fixed. Thank you guys!

@thaJeztah
Copy link
Member

LGTM (jankies are running)

@icecrime
Copy link
Contributor

LGTM

@crosbymichael
Copy link
Contributor

LGTM

@icecrime
Copy link
Contributor

Green janky: merging.

icecrime pushed a commit that referenced this pull request Jul 29, 2015
Keep backwards compatibility in kill api.
@icecrime icecrime merged commit 4a71323 into moby:master Jul 29, 2015
@calavera calavera deleted the backwards_compat_kill_error branch July 29, 2015 23:43
@calavera
Copy link
Contributor Author

cherry picked into #15091

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.

Error when attempting to kill a non-running container breaks backwards compatibility
6 participants