microcks-cli icon indicating copy to clipboard operation
microcks-cli copied to clipboard

fix : `start` and `stop` commands crash when container state diverges from local config

Open DivyanshuVortex opened this issue 6 months ago • 4 comments

Description :


  • Fixed microcks start to sync with daemon state before starting containers
  • Fixed microcks stop to handle already-removed containers gracefully
  • Fixed UpsertInstance to match by Name instead of ContainerID
  • Prevented duplicate ghostt entries in ~/.config/microcks/config
  • Added GetContainer(name) to inspect real container state from Docker/Podman

Screenshot (685)

Resolves : #306

DivyanshuVortex avatar May 06 '26 18:05 DivyanshuVortex

Removed return statemnts following log.Fatalf(). bcoz, log.Fatalf calls os.Exit(1) and terminates the program immediately, making any subsequent return unreachable.

DivyanshuVortex avatar May 06 '26 18:05 DivyanshuVortex

@DivyanshuVortex, how do you temporarily deploy your PR to build?

rootp1 avatar May 06 '26 19:05 rootp1

@DivyanshuVortex, how do you temporarily deploy your PR to build?

GitHub Actions is set to auto-run on PR , so the temp Build deploy just kicked off automatically when the PR got opened/updated.

DivyanshuVortex avatar May 07 '26 05:05 DivyanshuVortex

Hey @Harsh4902, could you please review this PR??? thnx

DivyanshuVortex avatar May 16 '26 16:05 DivyanshuVortex

This is fixed in this PR https://github.com/microcks/microcks-cli/pull/456

Syedowais312 avatar Jun 22 '26 09:06 Syedowais312