Skip to content

fix: fixes the lack of fallback to docker#270

Merged
ChrisJBurns merged 4 commits intomainfrom
fixes-runtime-checks
Apr 24, 2025
Merged

fix: fixes the lack of fallback to docker#270
ChrisJBurns merged 4 commits intomainfrom
fixes-runtime-checks

Conversation

@ChrisJBurns
Copy link
Copy Markdown
Collaborator

@ChrisJBurns ChrisJBurns commented Apr 24, 2025

There were errors when trying to ping the podman runtime when there is a socketpath detected. This PR ensures that if there is a failure in the ping to the runtime, it will skip to the next eligible runtime (docker in this case).

I've made sure to:

  • loop through supported socketpaths, checking if they exist and connect to them
  • added the err != nil code paths in the socketpath checks because we were swallowing them by only executing code on the err == nil cases. this allows us to log the reasons why it failed.

Screenshot of thv finding a Podman socketpath, trying to connect to it (because I've stopped it), failing, and trying docker instead, which resulted in a successful connection.
image

Ref: #260

there were errors when trying to ping the podman runtime when there is a
socketpath detected. this commit ensures that if there is a failure in
the ping to the runtime, it will skip to the next eligible runtime
(docker in this case)

Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
@ChrisJBurns ChrisJBurns merged commit 3ce591b into main Apr 24, 2025
10 checks passed
@ChrisJBurns ChrisJBurns deleted the fixes-runtime-checks branch April 24, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants