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

9.0.0-rc.1.24511.1 does not detect podman #6629

Open
paulomorgado opened this issue Nov 7, 2024 · 5 comments
Open

9.0.0-rc.1.24511.1 does not detect podman #6629

paulomorgado opened this issue Nov 7, 2024 · 5 comments
Labels
untriaged New issue has not been triaged

Comments

@paulomorgado
Copy link

To detect podman, I need to set the app host DOTNET_ASPIRE_CONTAINER_RUNTIME configuration to podman.

Is that the intended behavior?

@Alirexaa
Copy link
Contributor

Alirexaa commented Nov 7, 2024

Do you have Docker installed?

If your host environment has both Docker and Podman installed, .NET Aspire defaults to using Docker. You can instruct .NET Aspire to use Podman instead, by setting the DOTNET_ASPIRE_CONTAINER_RUNTIME environment variable to podman

see: https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/setup-tooling?tabs=windows&pivots=visual-studio#container-runtime

@paulomorgado
Copy link
Author

@Alirexaa, I don't have Docker installed, but I have docker CLI working with podman.

@joperezr joperezr added the untriaged New issue has not been triaged label Nov 12, 2024
@danegsta
Copy link
Member

The detection is based on the CLI interface, not the backend daemon, so we're detecting and defaulting to the Docker CLI. If both are installed, we have to pick one and chose to default to the Docker CLI (we do attempt to detect the scenario where docker is just a symlink to the podman binary and choose Podman in that scenario).

@paulomorgado
Copy link
Author

The detection is based on the CLI interface, not the backend daemon, so we're detecting and defaulting to the Docker CLI. If both are installed, we have to pick one and chose to default to the Docker CLI (we do attempt to detect the scenario where docker is just a symlink to the podman binary and choose Podman in that scenario).

That doesn't seem to be a fail-safe approach.

@danegsta
Copy link
Member

The detection is based on the CLI interface, not the backend daemon, so we're detecting and defaulting to the Docker CLI. If both are installed, we have to pick one and chose to default to the Docker CLI (we do attempt to detect the scenario where docker is just a symlink to the podman binary and choose Podman in that scenario).

That doesn't seem to be a fail-safe approach.

We don't use any daemon API directly; our Docker vs. Podman support just represents our ability to run commands and parse the output from the different CLI implementations. The Podman CLI can be used to access a Docker daemon backend and the Docker CLI can target a Podman daemon's Docker compatible API and our tooling will still work in those cases, but we also see those as edge cases compared to Docker users running the Docker CLI and Podman users running the Podman CLI. We've been using this same approach since the first GA release of Aspire without any major issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

4 participants