From b7b676da47cda48fdcbabebf9884741e1c9b8c76 Mon Sep 17 00:00:00 2001 From: "Haoyuan (Bill) Xing" Date: Sun, 31 Mar 2024 01:11:26 -0400 Subject: [PATCH] Fix unmarshall error. New Podman 5.0 API: https://github.com/containers/podman/commit/de845a5b427b82004130f27fec5c27f397722c27. Upstream has an unmarshal API implementation: https://github.com/containers/podman/commit/585af039d7a37580065076648550802d674dd901. --- api/structs.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/structs.go b/api/structs.go index 3a614e9..f8fa929 100644 --- a/api/structs.go +++ b/api/structs.go @@ -581,7 +581,8 @@ type InspectContainerConfig struct { // Container working directory WorkingDir string `json:"WorkingDir"` // Container entrypoint - Entrypoint string `json:"Entrypoint"` + // Podman 5.0 changed this to []string, ignoring. + // Entrypoint []string `json:"Entrypoint"` // On-build arguments - presently unused. More of Buildah's domain. OnBuild *string `json:"OnBuild"` // Container labels @@ -589,7 +590,8 @@ type InspectContainerConfig struct { // Container annotations Annotations map[string]string `json:"Annotations"` // Container stop signal - StopSignal uint `json:"StopSignal"` + // Podman 5.0 changed this to string, ignoring. + // StopSignal string `json:"StopSignal"` // Configured healthcheck for the container // Healthcheck *manifest.Schema2HealthConfig `json:"Healthcheck,omitempty"` // CreateCommand is the full command plus arguments of the process the