From 24dbe1223ded616202d88e0a9f3c6de5477f3fe8 Mon Sep 17 00:00:00 2001 From: akshaylg0314 Date: Tue, 9 Jun 2026 12:19:36 +0530 Subject: [PATCH 1/2] fix: mount Docker socket in devcontainer to fix bazel run Fixes #248 When running inside the devcontainer, the generated run_docker.sh script calls and . These fail because the host Docker socket (/var/run/docker.sock) was not mounted into the container, resulting in: failed to connect to the docker API at unix:///var/run/docker.sock; dial unix /var/run/docker.sock: connect: no such file or directory Add a bind mount for the Docker socket in .devcontainer/devcontainer.json so that Docker commands inside the devcontainer communicate with the host Docker daemon. --- .devcontainer/devcontainer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cd46bcb2980..986a4544d37 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,9 @@ { "name": "eclipse-s-core", "image": "ghcr.io/eclipse-score/devcontainer:v1.3.0", + "mounts": [ + "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" + ], "postCreateCommand": "bash .devcontainer/prepare_workspace.sh", "postStartCommand": "ssh-keygen -f '/home/vscode/.ssh/known_hosts' -R '[localhost]:2222' || true" } From 54f51d590cee929be24a878e7784c1b6d06c9ca5 Mon Sep 17 00:00:00 2001 From: akshaylg0314 Date: Tue, 9 Jun 2026 13:28:45 +0530 Subject: [PATCH 2/2] Fix Formatting --- .devcontainer/devcontainer.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 986a4544d37..059d434d65a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,9 +1,9 @@ { - "name": "eclipse-s-core", - "image": "ghcr.io/eclipse-score/devcontainer:v1.3.0", - "mounts": [ - "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" - ], - "postCreateCommand": "bash .devcontainer/prepare_workspace.sh", - "postStartCommand": "ssh-keygen -f '/home/vscode/.ssh/known_hosts' -R '[localhost]:2222' || true" + "name": "eclipse-s-core", + "image": "ghcr.io/eclipse-score/devcontainer:v1.3.0", + "mounts": [ + "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" + ], + "postCreateCommand": "bash .devcontainer/prepare_workspace.sh", + "postStartCommand": "ssh-keygen -f '/home/vscode/.ssh/known_hosts' -R '[localhost]:2222' || true" }