Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: inspect docker context to find best host #148

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

abuchanan-airbyte
Copy link
Collaborator

abctl isn't handling Docker Desktop on Linux very well. Docker has multiple contexts, and abctl is making some guesses about which context to use, but it's often wrong on Docker Desktop on Linux. This is a problem because kind will end up using a different context and the user will run into strange errors.

This change execs docker context inspect, which describes the current context in detail. If this command fails, it will fail silently, and abctl will fall back to its original behavior (guessing at some common host socket locations).

@abuchanan-airbyte abuchanan-airbyte requested a review from a team as a code owner November 12, 2024 17:28
@abuchanan-airbyte abuchanan-airbyte merged commit 4b27066 into main Nov 12, 2024
2 checks passed
@abuchanan-airbyte abuchanan-airbyte deleted the abuch/inspect-docker-context branch November 12, 2024 19:02
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