Skip to content

feat(docker): always pull images with --no-cache - #8363

Merged
stasadev merged 1 commit into
ddev:mainfrom
stasadev:20260429_stasadev_pull_with_no_cache
Apr 29, 2026
Merged

stasadev merged 1 commit into
ddev:mainfrom
stasadev:20260429_stasadev_pull_with_no_cache

Conversation

@stasadev

Copy link
Copy Markdown
Member

The Issue

When we rebuild Docker images in PRs we need to run:

ddev utility download-images
ddev restart

And recently I had to use ddev restart --no-cache to catch a bug described in #8359 (ddev start doesn't rebuild the project images because the old fingerprint still matches the tag name).

Which made me think: why doesn't ddev restart --no-cache pull anything?

It seems like a natural thing to do, and it's easier to run one command instead of two.

How This PR Solves The Issue

Adds pull when we use --no-cache.

Manual Testing Instructions

Look at docker-compose pull output in:

ddev start --no-cache
ddev restart --no-cache
ddev utility rebuild

And no docker-compose pull output (when we already have all the images) in:

ddev start
ddev restart
ddev utility rebuild --cache

Automated Testing Overview

Release/Deployment Notes

@stasadev
stasadev requested a review from a team as a code owner April 29, 2026 09:56
@github-actions

Copy link
Copy Markdown

@rfay rfay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't even remember ddev restart --no-cache and friends even being there :)

This is fine, thank you!

@stasadev
stasadev merged commit 5d0780a into ddev:main Apr 29, 2026
36 of 38 checks passed
@stasadev
stasadev deleted the 20260429_stasadev_pull_with_no_cache branch April 29, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants