From e9f3d9cbc029a9d55cf35ea51c2486078110bb2d Mon Sep 17 00:00:00 2001 From: John Wass Date: Thu, 19 Sep 2019 19:46:09 -0400 Subject: [PATCH] Do not relocate the mounted docker.sock (#1607) The mount path of the docker.sock should not depend on the host path of the docker.sock --- workflow/controller/workflowpod.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/workflow/controller/workflowpod.go b/workflow/controller/workflowpod.go index 8cd706c23b9e..5837793c7548 100644 --- a/workflow/controller/workflowpod.go +++ b/workflow/controller/workflowpod.go @@ -50,15 +50,9 @@ var ( ) func (woc *wfOperationCtx) getVolumeMountDockerSock() apiv1.VolumeMount { - dockerSockPath := "/var/run/docker.sock" - - if woc.controller.Config.DockerSockPath != "" { - dockerSockPath = woc.controller.Config.DockerSockPath - } - return apiv1.VolumeMount{ Name: common.DockerSockVolumeName, - MountPath: dockerSockPath, + MountPath: "/var/run/docker.sock", ReadOnly: true, } }