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

Using Podman Desktop to start a container, makes the Quadlet Extension break on Quadlet creation #263

Open
deversmann opened this issue Feb 4, 2025 · 2 comments
Labels
podlet Podlet Related issues

Comments

@deversmann
Copy link

deversmann commented Feb 4, 2025

I have tested this with Podman 5.3.2 and Podman 5.4.0-rc2. I am using Podman Desktop on an M1 MacBook Pro. When you start a container using podman run, the quadlet extension functions as expected and creates a well formed quadlet file. However, if you use Podman Desktop to start the container, the quadlet creation errors out because Podman Desktop uses APIs to start the container and the CreateCommand field is not set in the podman inspect output. With 5.4.0-rc2 it is an actual error. In 5.3.2, it is just an incorrect quadlet as the CreateCommand field is incorrectly populated.

see containers/podlet#134

@axel7083 axel7083 added the podlet Podlet Related issues label Feb 5, 2025
@axel7083
Copy link
Contributor

axel7083 commented Feb 5, 2025

Thanks for reporting, this is a known limitation of Podlet, not sure what we could do.

Maybe the Podlet logic could be changed to use the ContainerInspect content to generate the Quadlet instead of the CreateCommand, in theory we should have all the needed information.

@deversmann
Copy link
Author

That makes sense. The CreateCommand was likely the easiest path since it has everything in one place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
podlet Podlet Related issues
Projects
None yet
Development

No branches or pull requests

2 participants