summaryrefslogtreecommitdiff
path: root/libpod/runtime_pod_infra_linux.go
diff options
context:
space:
mode:
authorzhangguanzhang <zhangguanzhang@qq.com>2020-09-18 00:20:11 +0800
committerzhangguanzhang <zhangguanzhang@qq.com>2020-09-18 09:57:54 +0800
commit5f6fff0899ef3962af8ad41e6dc3c564520557dd (patch)
treea97d1879ddcca4c458da447d1886182325b333c7 /libpod/runtime_pod_infra_linux.go
parentf84f441bec8d4ad6b6dfce059ca71dbd2b0d9615 (diff)
downloadpodman-5f6fff0899ef3962af8ad41e6dc3c564520557dd.tar.gz
podman-5f6fff0899ef3962af8ad41e6dc3c564520557dd.tar.bz2
podman-5f6fff0899ef3962af8ad41e6dc3c564520557dd.zip
fix the .Path and .Args when use the infra-command
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'libpod/runtime_pod_infra_linux.go')
-rw-r--r--libpod/runtime_pod_infra_linux.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/runtime_pod_infra_linux.go b/libpod/runtime_pod_infra_linux.go
index 164068638..570cdd38f 100644
--- a/libpod/runtime_pod_infra_linux.go
+++ b/libpod/runtime_pod_infra_linux.go
@@ -50,7 +50,11 @@ func (r *Runtime) makeInfraContainer(ctx context.Context, p *Pod, imgName, rawIm
entryPoint = config.Entrypoint
entryCmd = config.Entrypoint
}
+ } else { // so use the InfraCommand
+ entrypointSet = true
+ entryCmd = entryPoint
}
+
if len(config.Cmd) > 0 {
// We can't use the default pause command, since we're
// sourcing from the image. If we didn't already set an