diff --git a/libcontainer/state_linux.go b/libcontainer/state_linux.go index 5e1bb731f8e..7bcfb420904 100644 --- a/libcontainer/state_linux.go +++ b/libcontainer/state_linux.go @@ -206,6 +206,10 @@ func (n *nullState) transition(s containerState) error { switch s.(type) { case *restoredState: n.c.state = s + case *runningState: + n.c.state = s + case *pausedState: + n.c.state = s default: // do nothing for null states }