Skip to content

Docker registry customisation #12590

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

simonrw
Copy link
Contributor

@simonrw simonrw commented May 7, 2025

Motivation

Some customers work in airgapped environments, and require customisation of the Docker image registries used. This PR enables a flexible method for adding customisation to the Docker image pulling strategy.

Changes

  • Add a DOCKER_GLOBAL_IMAGE_PREFIX configuration variable
  • Introduce the RegistryResolverStrategy protocol to support custom image resolving
  • Add an implementation HardCodedResolver which is a no-op
  • Use this resolver when pulling images, or creating containers

@simonrw simonrw added the semver: patch Non-breaking changes which can be included in patch releases label May 7, 2025
@simonrw simonrw added this to the 4.5 milestone May 7, 2025
Copy link

github-actions bot commented May 7, 2025

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   8m 31s ⏱️
493 tests 443 ✅  50 💤 0 ❌
986 runs  886 ✅ 100 💤 0 ❌

Results for commit a484b00.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented May 7, 2025

LocalStack Community integration with Pro

    2 files      2 suites   1h 45m 14s ⏱️
4 430 tests 4 047 ✅ 383 💤 0 ❌
4 432 runs  4 047 ✅ 385 💤 0 ❌

Results for commit a484b00.

♻️ This comment has been updated with latest results.

@simonrw simonrw force-pushed the docker/global-registry-customisation branch from 0e5586f to a484b00 Compare May 15, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant