Engine: new command 'stop' gracefully stops a container.

This commit is contained in:
Solomon Hykes
2013-11-17 03:00:16 +00:00
committed by Victor Vieux
parent bef8de9319
commit dbe1915fee
3 changed files with 34 additions and 16 deletions
+2 -3
View File
@@ -128,8 +128,7 @@ func TestCreateRmVolumes(t *testing.T) {
t.Fatal(err)
}
err = srv.ContainerStop(id, 1)
if err != nil {
if err := eng.Job("stop", id, "1").Run(); err != nil {
t.Fatal(err)
}
@@ -187,7 +186,7 @@ func TestCreateStartRestartStopStartKillRm(t *testing.T) {
t.Fatal(err)
}
if err := srv.ContainerStop(id, 15); err != nil {
if err := eng.Job("stop", id, "15").Run(); err != nil {
t.Fatal(err)
}