From 5f6fff0899ef3962af8ad41e6dc3c564520557dd Mon Sep 17 00:00:00 2001 From: zhangguanzhang Date: Fri, 18 Sep 2020 00:20:11 +0800 Subject: fix the .Path and .Args when use the infra-command Signed-off-by: zhangguanzhang --- libpod/runtime_pod_infra_linux.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpod') 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 -- cgit v1.2.3-54-g00ecf