summaryrefslogtreecommitdiff
path: root/libpod/container_inspect.go
diff options
context:
space:
mode:
authorAditya R <arajan@redhat.com>2022-04-22 00:47:10 +0530
committerAditya R <arajan@redhat.com>2022-04-22 00:58:40 +0530
commit8080a5f8ec8ad798eab194ef495a68824bd2e802 (patch)
tree3ce0106afbfbdbfb55f018a662329c0025a889f9 /libpod/container_inspect.go
parent121dde6234ddfcaf11abea03449bfd2a11da90a5 (diff)
downloadpodman-8080a5f8ec8ad798eab194ef495a68824bd2e802.tar.gz
podman-8080a5f8ec8ad798eab194ef495a68824bd2e802.tar.bz2
podman-8080a5f8ec8ad798eab194ef495a68824bd2e802.zip
Revert "container,inspect: convert Entrypoint to array instead of a string"
It seems this breaks older version of `podman-remote` users hence it looks like this patch would be a better candidate for podman `5.0` Problem * Client with `4.0` cannot interact with a server of `4.1` Plan this patch for podman `5.0` This reverts commit 0cebd158b6d8da1828b1255982e27fe9224310d0. Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'libpod/container_inspect.go')
-rw-r--r--libpod/container_inspect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_inspect.go b/libpod/container_inspect.go
index 14290ca0d..735790411 100644
--- a/libpod/container_inspect.go
+++ b/libpod/container_inspect.go
@@ -367,7 +367,7 @@ func (c *Container) generateInspectContainerConfig(spec *spec.Spec) *define.Insp
// Leave empty if not explicitly overwritten by user
if len(c.config.Entrypoint) != 0 {
- ctrConfig.Entrypoint = c.config.Entrypoint
+ ctrConfig.Entrypoint = strings.Join(c.config.Entrypoint, " ")
}
if len(c.config.Labels) != 0 {