浏览代码

docker-py: use --mount for bind-mounting docker.sock

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 6 年之前
父节点
当前提交
535e29da05
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hack/make/test-docker-py

+ 1 - 1
hack/make/test-docker-py

@@ -26,7 +26,7 @@ source hack/make/.integration-test-helpers
 	case "${docker_host_scheme}" in
 	case "${docker_host_scheme}" in
 		unix)
 		unix)
 			# trim the tcp:// scheme, and bind-mount the docker socket into the container
 			# trim the tcp:// scheme, and bind-mount the docker socket into the container
-			run_opts="-v ${DOCKER_HOST#unix://}:/var/run/docker.sock"
+			run_opts="--mount type=bind,src=${DOCKER_HOST#unix://},dst=/var/run/docker.sock"
 			;;
 			;;
 
 
 		tcp)
 		tcp)