mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
c0e6da7637
commit
977c4046fd
1 changed files with 3 additions and 1 deletions
|
|
@ -278,7 +278,9 @@ func (s *State) SetRunning(pid int, initial bool) {
|
||||||
s.ErrorMsg = ""
|
s.ErrorMsg = ""
|
||||||
s.Running = true
|
s.Running = true
|
||||||
s.Restarting = false
|
s.Restarting = false
|
||||||
|
if initial {
|
||||||
s.Paused = false
|
s.Paused = false
|
||||||
|
}
|
||||||
s.ExitCodeValue = 0
|
s.ExitCodeValue = 0
|
||||||
s.Pid = pid
|
s.Pid = pid
|
||||||
if initial {
|
if initial {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue