Skip to content
New issue

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

Docker Registry Mirrors Not Working with Encore Build #1671

Open
inter0925 opened this issue Dec 25, 2024 · 0 comments
Open

Docker Registry Mirrors Not Working with Encore Build #1671

inter0925 opened this issue Dec 25, 2024 · 0 comments

Comments

@inter0925
Copy link

Issue: Docker Registry Mirrors Not Working with Encore Build

Problem Description

When building Docker images with Encore, the build process ignores the local Docker daemon's registry-mirrors configuration. This causes issues in regions where direct access to Docker Hub is restricted or unstable.

Current Behavior

  • docker pull node:slim works fine with configured registry-mirrors in daemon.json
  • encore build docker attempts to connect directly to index.docker.io, resulting in timeout errors

Error Message

encore build docker --config ./infra-config.json url-short:v1.0
5:28PM INF compiling Encore application for linux/amd64
5:28PM INF resolving base image node:slim
5:28PM INF could not get image from local daemon, fetching it remotely
5:28PM ERR resolve base image: unable to fetch image: Get "https://index.docker.io/v2/": dial tcp 108.160.170.45:443: i/o timeout

Expected Behavior

Encore should either:

  1. Use the local Docker daemon's registry-mirrors configuration, or
  2. Provide a way to configure registry mirrors in infra-config.json or through environment variables

Question

Is there a way to configure registry mirrors for Encore's Docker build process? This is crucial for users in regions where direct access to Docker Hub is restricted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant