Issue when setting up the dev container for development

Getting the following error when setting up the dev container. I am new to open source contribution and dev containers, so any help would be much appreciated.

These are the steps i have done before this,

  1. Forked the main branch
  2. Installed docker and Ubuntu in WSL
  3. Clicked the link in the “Dev Containers” section of the contributions page.
  4. Got this error and stuck with it.

⠏ postgres Pulling 6.0s
failed to copy: httpReadSeeker: failed open: failed to do request: Get “https://docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com/registry-v2/docker/registry/v2/blobs/sha256/31/31d86079818e8a38ee35e06c0f4485a428b659943737f00496b255af751e69d0/data?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f1baa2dd9b876aeb89efebbfc9e5d5f4%2F20250918%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20250918T144347Z&X-Amz-Expires=1200&X-Amz-SignedHeaders=host&X-Amz-Signature=1c7f5910ba2e2ecaee72f4af387f9b8ce7ebc6ebc4104ad0be759ce6d2a3e850”: dialing docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com:443 container via direct connection because static system has no HTTPS proxy: connecting to docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com:443: dial tcp: lookup docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com: no such host
[22788 ms] Error: Command failed: docker compose --project-name n8n_devcontainer -f /workspaces/n8n/.devcontainer/docker-compose.yml -f /tmp/devcontainercli-root/docker-compose/docker-compose.devcontainer.build-1758206619499.yml -f /tmp/devcontainercli-root/docker-compose/docker-compose.devcontainer.containerFeatures-1758206638577-f7fd10be-84ce-4825-a781-4d1512ace891.yml up -d
[22788 ms] at l6 (/root/.vscode-remote-containers/dist/dev-containers-cli-0.427.0/dist/spec-node/devContainersSpecCLI.js:432:3348)
[22788 ms] at async c6 (/root/.vscode-remote-containers/dist/dev-containers-cli-0.427.0/dist/spec-node/devContainersSpecCLI.js:412:3860)
[22788 ms] at async Y6 (/root/.vscode-remote-containers/dist/dev-containers-cli-0.427.0/dist/spec-node/devContainersSpecCLI.js:484:4015)
[22788 ms] at async BC (/root/.vscode-remote-containers/dist/dev-containers-cli-0.427.0/dist/spec-node/devContainersSpecCLI.js:484:4957)
[22788 ms] at async p7 (/root/.vscode-remote-containers/dist/dev-containers-cli-0.427.0/dist/spec-node/devContainersSpecCLI.js:665:202)
[22789 ms] at async d7 (/root/.vscode-remote-containers/dist/dev-containers-cli-0.427.0/dist/spec-node/devContainersSpecCLI.js:664:14804)
[22789 ms] at async /root/.vscode-remote-containers/dist/dev-containers-cli-0.427.0/dist/spec-node/devContainersSpecCLI.js:484:1188
[22810 ms] Exit code 1
[22810 ms] Start: Run: docker rm -f 49197f4d357248e4aff8340c313e3e3186df68111bff64c072254d00a3b203b5
[22815 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.427.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-fc0dc9ba-0314-42fc-a6e3-9fa0b57dc6101758206620753 --workspace-folder /workspaces/n8n --workspace-mount-consistency cached --gpu-availability detect --id-label vsch.local.repository= GitHub - n8n-io/n8n: Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations. --id-label vsch.local.repository.volume=n8n-c37165a31cd3fc399e84bf50c1720aef60a6fc1164dcb970f893b635ea76b508 --id-label vsch.local.repository.folder=n8n --id-label devcontainer.config_file=/workspaces/n8n/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/n8n/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-914ade2e-cafd-442f-9803-ecf6bfa9d9ca.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=n8n-c37165a31cd3fc399e84bf50c1720aef60a6fc1164dcb970f893b635ea76b508,target=/workspaces,external=true --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default off --mount-workspace-git-root --terminal-columns 166 --terminal-rows 25 --include-configuration --include-merged-configuration
[22815 ms] Exit code 1
[22953 ms] Container server terminated (code: 137, signal: null).
[22953 ms] Container server terminated. Reconnecting in 5 seconds…
[27954 ms] Start: Container: Reconnecting Dev Container server
[27955 ms] Start: Run in container: /bin/sh
[28022 ms] Container server: Error response from daemon: No such container: 49197f4d357248e4aff8340c313e3e3186df68111bff64c072254d00a3b203b5
[28025 ms] Container server terminated (code: 1, signal: null).
[28025 ms] Container server terminated early. Not reconnecting.
[28025 ms] Reconnecting Dev Container server failed: Container server terminated (code: 1, signal: null).

Hi @anandhjemini - thanks for looking into contributing! I believe you’re encountering issues with DNS lookup from WSL - a not uncommon problem. If you open a powershell instance and enter ubuntu that will get you into a WSL shell, you can then try ping cloudflarestorage.com to see if it resolves correctly.

What might be easier is to follow the steps for contributing without the need for a dev container found here. If you install the required dependencies and build tools then you should be able to run the development instance directly without the need for WSL.

@mike_chuckles Thanks for the clarification. I tried resetting the WSL and re running the dev container, which solved this issue, but the devcontainer keeps stopping.
So yeah, i will try the standard procedure like in the document.
And once again thank you for responding.

1 Like

Not a problem - it does sound like WSL issues with docker/networking issues, you will likely have better success setting up the repository to run directly on your machine - good luck!
If you have any further issues please report back.

Sure @mike_chuckles.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.