Browse Source

Merge pull request #33843 from moypray/exit

Set unpaused state when receiving 'stateExit' event
Brian Goff 8 năm trước cách đây
mục cha
commit
f8f1a3ade9
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      container/state.go

+ 2 - 0
container/state.go

@@ -278,6 +278,7 @@ func (s *State) SetRunning(pid int, initial bool) {
 	s.ErrorMsg = ""
 	s.Running = true
 	s.Restarting = false
+	s.Paused = false
 	s.ExitCodeValue = 0
 	s.Pid = pid
 	if initial {
@@ -304,6 +305,7 @@ func (s *State) SetRestarting(exitStatus *ExitStatus) {
 	// all the checks in docker around rm/stop/etc
 	s.Running = true
 	s.Restarting = true
+	s.Paused = false
 	s.Pid = 0
 	s.FinishedAt = time.Now().UTC()
 	s.setFromExitStatus(exitStatus)