Skip to content

Commit

Permalink
Merge pull request #34071 from FengtuWang/pause
Browse files Browse the repository at this point in the history
Keep pause state when restoring container's status
  • Loading branch information
thaJeztah authored Jul 19, 2017
2 parents eb9e5cd + 977c404 commit 4309075
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 4309075

Please sign in to comment.