Skip to content

Commit fa89bf1

Browse files
committed
fix(ci): start dockerd on default socket path
Using a custom socket path and DOCKER_HOST breaks the GitHub Actions runner's internal Docker operations (it uses docker exec to run steps inside the container). Since we removed the host socket volume mount, /var/run/docker.sock is free inside the container — just start dockerd on the default path with no DOCKER_HOST override needed.
1 parent 6cf4c44 commit fa89bf1

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/release-canary.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,12 @@ jobs:
8181
# container's daemon, so 127.0.0.1 port bindings are reachable
8282
# directly — no --gateway-host workaround needed.
8383
#
84-
# We listen on a dedicated socket and set DOCKER_HOST so that the
85-
# openshell CLI (and bollard) connects to our DinD daemon rather
86-
# than the GitHub Actions runner's injected host socket.
87-
export DOCKER_HOST="unix:///var/run/dind.sock"
88-
dockerd --host "$DOCKER_HOST" &>/var/log/dockerd.log &
89-
echo "Waiting for Docker daemon on ${DOCKER_HOST}..."
90-
timeout 30 sh -c 'until docker --host "$DOCKER_HOST" info >/dev/null 2>&1; do sleep 1; done'
84+
# We start on the default socket (/var/run/docker.sock). Since we
85+
# don't mount the host socket, this path is free inside the container.
86+
dockerd &>/var/log/dockerd.log &
87+
echo "Waiting for Docker daemon..."
88+
timeout 30 sh -c 'until docker info >/dev/null 2>&1; do sleep 1; done'
9189
echo "Docker daemon ready"
92-
# Persist DOCKER_HOST for subsequent steps
93-
echo "DOCKER_HOST=${DOCKER_HOST}" >> "$GITHUB_ENV"
9490
9591
- name: Install CLI from GitHub Release
9692
run: ./install.sh

0 commit comments

Comments
 (0)