Skip to content

Commit

Permalink
Keep pause state when restoring container's status
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
FengtuWang committed Jul 12, 2017
1 parent c0e6da7 commit 977c404
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion container/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 977c404

Please sign in to comment.