Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: Container update command incorrectly removes Docker host and revokes token

rcourtmanabccbcafb6c1
diff --git a/internal/monitoring/docker_commands.go b/internal/monitoring/docker_commands.go
index f7d869e41e..f9d35c371d 100644
--- a/internal/monitoring/docker_commands.go
+++ b/internal/monitoring/docker_commands.go
@@ -362,7 +362,11 @@ func (m *Monitor) acknowledgeDockerCommand(commandID, hostID, status, message st
case DockerCommandStatusCompleted:
cmd.markAcknowledged(message)
cmd.markCompleted(message)
- shouldRemove = true
+ // Only remove the Docker host if this was a "stop" command.
+ // Other commands (update_container, check_updates) should not remove the host.
+ if cmd.status.Type == DockerCommandTypeStop {
+ shouldRemove = true
+ }
case DockerCommandStatusFailed:
cmd.markFailed(message)
m.state.SetDockerHostPendingUninstall(resolvedHostID, false)