We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixpacks now ignores the DOCKER_HOST environment variable. It seems that a bug was introduced somewhere between versions 1.27.1 and 1.28.0
DOCKER_HOST
This seems related: #1180 #1176
1.28.0
❯ DOCKER_HOST=unix:///run/user/1000/docker.sock nixpacks build . ╔═══════════════════════ Nixpacks v1.28.0 ═══════════════════════╗ ║ setup │ nodejs_22, yarn-1_x, openssl ║ ║────────────────────────────────────────────────────────────────║ ║ install │ npm install -g corepack@0.24.1 && corepack enable ║ ║ │ yarn install --check-cache ║ ║────────────────────────────────────────────────────────────────║ ║ build │ yarn run build ║ ║────────────────────────────────────────────────────────────────║ ║ start │ yarn run migrate && yarn run start ║ ╚════════════════════════════════════════════════════════════════╝ ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied Error: Docker build failed
Notice that it tries to connect to unix:///var/run/docker.sock instead of unix:///run/user/1000/docker.sock from DOCKER_HOST env variable
unix:///var/run/docker.sock
unix:///run/user/1000/docker.sock
1.27.1
❯ DOCKER_HOST=unix:///run/user/1000/docker.sock nixpacks build . ╔═══════════════════════ Nixpacks v1.27.1 ═══════════════════════╗ ║ setup │ nodejs_22, yarn-1_x, openssl ║ ║────────────────────────────────────────────────────────────────║ ║ install │ npm install -g corepack@0.24.1 && corepack enable ║ ║ │ yarn install --check-cache ║ ║────────────────────────────────────────────────────────────────║ ║ build │ yarn run build ║ ║────────────────────────────────────────────────────────────────║ ║ start │ yarn run migrate && yarn run start ║ ╚════════════════════════════════════════════════════════════════╝ [+] Building 1.0s (2/2) FINISHED ...
Proceeds as normal
Arch Linux
The text was updated successfully, but these errors were encountered:
Still happens in 1.29.0
❯ DOCKER_HOST=unix:///run/user/1000/docker.sock nixpacks build . ╔═══════════════════════ Nixpacks v1.29.0 ═══════════════════════╗ ║ setup │ nodejs_22, yarn-1_x, openssl ║ ║────────────────────────────────────────────────────────────────║ ║ install │ npm install -g corepack@0.24.1 && corepack enable ║ ║ │ yarn install --check-cache ║ ║────────────────────────────────────────────────────────────────║ ║ build │ yarn run build ║ ║────────────────────────────────────────────────────────────────║ ║ start │ yarn run migrate && yarn run start ║ ╚════════════════════════════════════════════════════════════════╝ ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied Error: Docker build failed
Sorry, something went wrong.
You can specify the host by providing the --docker-host argument when building.
--docker-host
nixpacks build --docker-host unix:///run/user/1000/docker.sock .
We should still fix this and support the environment variable though
No branches or pull requests
Is there an existing issue for this?
Describe the bug
nixpacks now ignores the
DOCKER_HOST
environment variable. It seems that a bug was introduced somewhere between versions 1.27.1 and 1.28.0This seems related:
#1180
#1176
To reproduce
1.28.0
Notice that it tries to connect to
unix:///var/run/docker.sock
instead ofunix:///run/user/1000/docker.sock
fromDOCKER_HOST
env variableExpected behavior
1.27.1
Proceeds as normal
Environment
Arch Linux
The text was updated successfully, but these errors were encountered: