Create new network on dead ghosts on restart.

Fixes #2089
This commit is contained in:
Paul Nasrat
2013-11-03 14:13:18 -05:00
parent 4cbb6ce13b
commit 95708dd35c
3 changed files with 24 additions and 14 deletions
+8 -6
View File
@@ -1657,11 +1657,13 @@ func TestRestartGhost(t *testing.T) {
runtime := mkRuntime(t)
defer nuke(runtime)
container, err := runtime.Create(&Config{
Image: GetTestImage(runtime).ID,
Cmd: []string{"sh", "-c", "echo -n bar > /test/foo"},
Volumes: map[string]struct{}{"/test": {}},
},
container, _, err := runtime.Create(
&Config{
Image: GetTestImage(runtime).ID,
Cmd: []string{"sh", "-c", "echo -n bar > /test/foo"},
Volumes: map[string]struct{}{"/test": {}},
},
"",
)
if err != nil {
@@ -1677,4 +1679,4 @@ func TestRestartGhost(t *testing.T) {
if err != nil {
t.Fatal(err)
}
}
}