From 3c1442cd70b46fe8e678c9cbb8d949e7277f1e5a Mon Sep 17 00:00:00 2001 From: "Haruki.Kawakami" Date: Tue, 22 Feb 2022 20:05:34 +0900 Subject: [PATCH] specified var/run/docker.sock directly to mount it --- ecs-cli/modules/cli/local/network/setup.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ecs-cli/modules/cli/local/network/setup.go b/ecs-cli/modules/cli/local/network/setup.go index 25edd6007..3d00a17d8 100644 --- a/ecs-cli/modules/cli/local/network/setup.go +++ b/ecs-cli/modules/cli/local/network/setup.go @@ -76,8 +76,6 @@ const ( // Name of the container, we need to give it a name so that we don't re-create a container every time we setup. localEndpointsContainerName = "amazon-ecs-local-container-endpoints" - - ) // Setup creates a user-defined bridge network with a running Local Container Endpoints container. It will pull @@ -209,7 +207,7 @@ func createLocalEndpointsContainer(dockerClient containerStarter) string { }, &container.HostConfig{ Binds: []string{ - "/var/run:/var/run", + "/var/run/docker.sock:/var/run/docker.sock", fmt.Sprintf("%s/.aws/:/home/.aws/", os.Getenv("HOME")), }, },