Keep pause state when restoring container's status
Do not change pause state when restoring container's status, or status in docker will be different with status in runc. Signed-off-by: Fengtu Wang <wangfengtu@huawei.com> (cherry picked from commit 977c4046fd2147d7c04f4b513a94138013ca0dd6) Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
@@ -278,7 +278,9 @@ func (s *State) SetRunning(pid int, initial bool) {
|
||||
s.ErrorMsg = ""
|
||||
s.Running = true
|
||||
s.Restarting = false
|
||||
s.Paused = false
|
||||
if initial {
|
||||
s.Paused = false
|
||||
}
|
||||
s.ExitCodeValue = 0
|
||||
s.Pid = pid
|
||||
if initial {
|
||||
|
||||
Reference in New Issue
Block a user