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

Podman compatibility #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

christianberg
Copy link

Use docker version instead of docker when checking if Docker is installed. When docker is used as an alias for podman, the original script fails, because podman without any subcommand exits with code 125.

Many companies are moving towards podman as a drop-in replacement for docker for local development, because of licensing issues with Docker Desktop.

Use `docker version` instead of `docker` when checking if Docker is installed. When `docker` is used as an alias for `podman`, the original script fails, because `podman` without any subcommand exits with code `125`.
@yasirmturk
Copy link

👍

@fogfish
Copy link

fogfish commented Sep 15, 2022

Should we use environment variable instead of docker command? and/or fallback into docker if the variable is not defined ?

@christianberg
Copy link
Author

In my opinion, being able to set the docker command name via an env variable would be a nice-to-have, but not strictly necessary. I believe most users who adopt podman as a drop-in replacement for docker create an alias or symlink, so that scripts using docker generally still work.

@fogfish
Copy link

fogfish commented Sep 17, 2022

The usage of alias is a good practice in the beginning of the adoption journey but we know the reality. The following claim alias docker=podman is not always holds true. In the worst case, you as developer of the solution just test things on the docker and assume it would automatically work on the podman. My comment about environment variables was not really to help life easier for users of this solutions but rather for maintainers of lightstep-developer-satellite. Maintainers should not forget about other environments than docker one. Environment variable should raise the attention for other config options and help on testing it.

@oporkka
Copy link

oporkka commented Aug 30, 2023

This is very close to the fix I made to lighstep developer satellite script on my local machine 👍

IMO this would be useful to merge

@fogfish
Copy link

fogfish commented Aug 30, 2023

👍

@fogfish
Copy link

fogfish commented Nov 1, 2023

Just curios... Is this repository actively maintained by lightstep

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.

5 participants