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

Only use podman if CLI can execute. Use docker if non-Linux podman has no connection to Linux system. #2125

Merged
merged 1 commit into from
Sep 6, 2024

Commits on Aug 7, 2024

  1. Only use podman if CLI can execute. Use docker if non-Linux podman ha…

    …s no connection to Linux system.
    
    Solves
    ```
    ❯ make test
    Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM Error: unable to connect to Podman socket: failed to read identity "/Users/tiger/.local/share/containers/podman/machine/machine": open /Users/tiger/.local/share/containers/podman/machine/machine: no such file or directory /opt/homebrew/bin/docker run --rm -e LDFLAGS=" -X main.GitCommit=bbdd974+CHANGES -X main.GitDescribe=v4 -w -s" -e GITHUB_TOKEN="" -v /Users/tiger/git/yq-k8s/vendor:/go/src -v /Users/tiger/git/yq-k8s:/yq/src/github.com/mikefarah/yq -w /yq/src/github.com/mikefarah/yq yq_dev go mod vendor
    Error: podman-machine-default: VM already exists
    ```
    
    Signed-off-by: Tiger Kaovilai <[email protected]>
    kaovilai committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    854d98a View commit details
    Browse the repository at this point in the history