Browse code

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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/08/11 03:21:21
Showing 1 changed files
... ...
@@ -26,7 +26,7 @@ source hack/make/.integration-test-helpers
26 26
 	case "${docker_host_scheme}" in
27 27
 		unix)
28 28
 			# trim the tcp:// scheme, and bind-mount the docker socket into the container
29
-			run_opts="-v ${DOCKER_HOST#unix://}:/var/run/docker.sock"
29
+			run_opts="--mount type=bind,src=${DOCKER_HOST#unix://},dst=/var/run/docker.sock"
30 30
 			;;
31 31
 
32 32
 		tcp)