From 0eb09d3d392928c04a382cdb768a125f8800e525 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Fri, 14 Aug 2026 14:21:18 +0100 Subject: [PATCH 1/2] Env: Fall back to cached docker images when the registry is unreachable --- packages/env/CHANGELOG.md | 1 + packages/env/lib/runtime/docker/index.js | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/env/CHANGELOG.md b/packages/env/CHANGELOG.md index 3bd97ae210e135..2c7b0dd4b6e081 100644 --- a/packages/env/CHANGELOG.md +++ b/packages/env/CHANGELOG.md @@ -5,6 +5,7 @@ ### Bug Fixes - Update git sources to the latest commit when `--update` is passed. Previously, a source pointing at a branch (such as `"core": "WordPress/WordPress"`) stayed at the commit it was first cloned at, no matter how many times it was updated. +- Do not fail `wp-env start` when docker images cannot be pulled (e.g., the Docker registry is unreachable); fall back to locally cached images and show a notice instead. ([#72477](https://github.com/WordPress/gutenberg/issues/72477)) ## 11.13.0 (2026-08-12) diff --git a/packages/env/lib/runtime/docker/index.js b/packages/env/lib/runtime/docker/index.js index 306067a1676e72..b832711ffc218e 100644 --- a/packages/env/lib/runtime/docker/index.js +++ b/packages/env/lib/runtime/docker/index.js @@ -162,7 +162,17 @@ class DockerRuntime { // stop wp-env from working correctly. } - await dockerCompose.pullAll( dockerComposeConfig ); + try { + await dockerCompose.pullAll( dockerComposeConfig ); + } catch { + // Note: pulling the images requires connecting to the Docker + // registry, which may be unavailable (e.g., offline or an + // outage). Locally cached images will be used instead, so this + // error should not stop wp-env from working correctly. + spinner.info( + 'Could not pull docker images; using cached images instead.' + ); + } spinner.text = 'Downloading sources.'; } From da46f66180c941f23ef76c99d9602c39efdfe8ac Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Fri, 14 Aug 2026 15:52:20 +0100 Subject: [PATCH 2/2] Update packages/env/CHANGELOG.md Co-authored-by: George Mamadashvili --- packages/env/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/env/CHANGELOG.md b/packages/env/CHANGELOG.md index 2c7b0dd4b6e081..942ec960e0ecd8 100644 --- a/packages/env/CHANGELOG.md +++ b/packages/env/CHANGELOG.md @@ -5,7 +5,7 @@ ### Bug Fixes - Update git sources to the latest commit when `--update` is passed. Previously, a source pointing at a branch (such as `"core": "WordPress/WordPress"`) stayed at the commit it was first cloned at, no matter how many times it was updated. -- Do not fail `wp-env start` when docker images cannot be pulled (e.g., the Docker registry is unreachable); fall back to locally cached images and show a notice instead. ([#72477](https://github.com/WordPress/gutenberg/issues/72477)) +- Do not fail `wp-env start` when Docker images cannot be pulled (e.g., the Docker registry is unreachable); fall back to locally cached images and show a notice instead. ([#81631](https://github.com/WordPress/gutenberg/issues/81631)) ## 11.13.0 (2026-08-12)