API RestartContainer incorrectly shows all containers on server have restarted #187

Open
opened 2025-10-31 15:04:27 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @gerard33 on GitHub (Jan 20, 2025).

First of all, thanks for this excellent software you have made 👍
I have migrated from Portainer and never looked back 😃

I have noticed that when I use the API to restart one container on a server, that in the log all containers on that server show as if they have been restarted.

This is the curl request:

curl --header "Content-Type: application/json" \
    --header "X-Api-Key: <key>" \
    --header "X-Api-Secret: <secret>" \
    --data '{ "type": "RestartContainer", "params": { "server": "server-various-containers", "container": "selenium-for-eneco-standalone-chromium-1" } }' \
    http://komodo.site/execute

When looking at the page of another container on that server, it shows as it has restarted as well

Image

When clicking on that part it however shows the correct Docker restart command

Image

Originally created by @gerard33 on GitHub (Jan 20, 2025). First of all, thanks for this excellent software you have made 👍 I have migrated from Portainer and never looked back 😃 I have noticed that when I use the API to restart one container on a server, that in the log all containers on that server show as if they have been restarted. This is the curl request: ``` curl --header "Content-Type: application/json" \ --header "X-Api-Key: <key>" \ --header "X-Api-Secret: <secret>" \ --data '{ "type": "RestartContainer", "params": { "server": "server-various-containers", "container": "selenium-for-eneco-standalone-chromium-1" } }' \ http://komodo.site/execute ``` When looking at the page of another container on that server, it shows as it has restarted as well ![Image](https://github.com/user-attachments/assets/3d0f7c9f-e01c-4726-82e9-e7caf9755d1e) When clicking on that part it however shows the correct Docker restart command ![Image](https://github.com/user-attachments/assets/5cb2b641-2112-409c-aca2-6bfb49076b41)
GiteaMirror added the enhancement label 2025-10-31 15:04:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#187