From f926ed182f908aba20980202becfcdbe2d1e9c34 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Fri, 19 Apr 2013 12:21:39 -0700 Subject: [PATCH] Allow to kill/stop ghosts --- container.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/container.go b/container.go index 1f60e08a9d..bac0951da4 100644 --- a/container.go +++ b/container.go @@ -646,9 +646,6 @@ func (container *Container) Kill() error { if !container.State.Running { return nil } - if container.State.Ghost { - return fmt.Errorf("Can't kill ghost container") - } return container.kill() } @@ -658,9 +655,6 @@ func (container *Container) Stop(seconds int) error { if !container.State.Running { return nil } - if container.State.Ghost { - return fmt.Errorf("Can't stop ghost container") - } // 1. Send a SIGTERM if output, err := exec.Command("lxc-kill", "-n", container.Id, "15").CombinedOutput(); err != nil {