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

Failing to Unmarshal Podman 5.0 Inspect result #331

Open
hbsnmyj opened this issue Mar 27, 2024 · 1 comment
Open

Failing to Unmarshal Podman 5.0 Inspect result #331

hbsnmyj opened this issue Mar 27, 2024 · 1 comment

Comments

@hbsnmyj
Copy link
Contributor

hbsnmyj commented Mar 27, 2024

Hi folks,

It seems that podman 5.0 changed InspectContainerConfig.Config.EntryPoint from string to an array, which causes an unmarshal error:

client.alloc_runner.task_runner: running driver failed: alloc_id= task= error="rpc error: code = Unknown desc = failed to start task, could not inspect container : json: cannot unmarshal array into Go struct field InspectContainerConfig.Config.Entrypoint of type string

It looks like the field is not being used right now so the easier workaround might be just remove it from the struct?

@shoenig
Copy link
Member

shoenig commented Mar 27, 2024

Yeah @hbsnmyj I think removing it would be reasonable as long as we aren't using it.

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

2 participants