Skip to content

Allow to specify what container runtime to use instead of preferring docker when installing database #2956

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

Open
doberkofler opened this issue Apr 8, 2025 · 0 comments

Comments

@doberkofler
Copy link

When having installed docker and podman it is not possible to use podman as the container runtime.
The buildContainerImage.sh (and most likely all others) simply prefer Docker over Podman and therefore malke it impossible to use Podman.
It would be helpful to habe an option or environment flag that specifies what engine to use or to overwrite the default detection.

# Check container runtime
checkContainerRuntime() {
  CONTAINER_RUNTIME=$(which docker 2>/dev/null) ||
    CONTAINER_RUNTIME=$(which podman 2>/dev/null) ||
    {
      echo "No docker or podman executable found in your PATH"
      exit 1
    }

  if "${CONTAINER_RUNTIME}" info | grep -i -q buildahversion; then
    checkPodmanVersion
  else
    checkDockerVersion
  fi
}
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

No branches or pull requests

1 participant