mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-26 18:17:24 +00:00
Engine: new command 'stop' gracefully stops a container.
This commit is contained in:
committed by
Victor Vieux
parent
bef8de9319
commit
dbe1915fee
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user