Skip to content

fix(download-images): pull webserver image, for #8304 - #8358

Merged
stasadev merged 1 commit into
ddev:mainfrom
stasadev:20260428_stasadev_download_images
Apr 29, 2026
Merged

stasadev merged 1 commit into
ddev:mainfrom
stasadev:20260428_stasadev_download_images

Conversation

@stasadev

Copy link
Copy Markdown
Member

The Issue

Webserver image is not pulled if you are outside the project directory:

$ cd ~ && ddev utility download-images
Downloading basic images 
[+] pull 5/5
 ✔ Image ddev/ddev-utilities:latest              Pulled                     2.0s
 ✔ Image ddev/ddev-dbserver-mariadb-11.8:v1.25.2 Pulled                     2.1s
 ✔ Image ddev/ddev-ssh-agent:v1.25.2             Pulled                     1.8s
 ✔ Image ddev/ddev-xhgui:v1.25.2                 Pulled                     2.0s
 ✔ Image ddev/ddev-traefik-router:v1.25.2        Pulled                     1.8s
Successfully downloaded DDEV images

How This PR Solves The Issue

Adds pulling for ddev/ddev-webserver.

Manual Testing Instructions

cd ~ && ddev utility download-images
# see "Image ddev/ddev-webserver:20260427_stasadev_dockerfile Pulled"

Automated Testing Overview

Release/Deployment Notes

@stasadev
stasadev requested a review from a team as a code owner April 28, 2026 16:36
@github-actions

Copy link
Copy Markdown

@tyler36 tyler36 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Confirmed worked as intended. This PR allows the webserver image to be pulled.

1 minor point. Docker display pull 7/7 but only lists 6 images. Tested with Docker Desktop and WSL (on Win10). Can anyone else confirm?

Test

Current DDEV (v1.25.2)

  1. Check current version.
$ ddev -v
ddev version v1.25.2
  1. Create and move into empty directory.
mkdir ddev-8358 && cd ddev-8358
  1. Pull images.
$ ddev utility download-images
Downloading basic images
[+] pull 5/5
 ✔ Image ddev/ddev-dbserver-mariadb-11.8:v1.25.2 Pulled         2.1s
 ✔ Image ddev/ddev-xhgui:v1.25.2                 Pulled         2.1s
 ✔ Image ddev/ddev-ssh-agent:v1.25.2             Pulled         2.1s
 ✔ Image ddev/ddev-traefik-router:v1.25.2        Pulled         2.0s
 ✔ Image ddev/ddev-utilities:latest              Pulled         2.0s
Successfully downloaded DDEV images

This PR

  1. Check current version.
$ ddev -v
ddev version v1.25.2-7-g6105c7812
  1. Pull images.
ddev utility download-images
Downloading basic images
[+] pull 7/7
 ✔ Image ddev/ddev-traefik-router:v1.25.2                 Pulled          1.8s
 ✔ Image ddev/ddev-webserver:20260427_stasadev_dockerfile Pulled          109.3s
 ✔ Image ddev/ddev-utilities:latest                       Pulled          1.8s
 ✔ Image ddev/ddev-dbserver-mariadb-11.8:v1.25.2          Pulled          1.8s
 ✔ Image ddev/ddev-ssh-agent:v1.25.2                      Pulled          1.8s
 ✔ Image ddev/ddev-xhgui:v1.25.2                          Pulled          1.8s
Successfully downloaded DDEV images

@stasadev

Copy link
Copy Markdown
Member Author

1 minor point. Docker display pull 7/7 but only lists 6 images. Tested with Docker Desktop and WSL (on Win10). Can anyone else confirm?

This indicator shows different numbers when something is actually being pulled:

It showed 5/5 initially, but then 32/32 because ddev/ddev-dbserver-mariadb-11.8:v1.25.2 was pulled:

$ ddev utility download-images
Downloading basic images 
[+] pull 32/32
 ✔ Image ddev/ddev-ssh-agent:v1.25.2             Pulled                     2.2s
 ✔ Image ddev/ddev-traefik-router:v1.25.2        Pulled                     2.2s
 ✔ Image ddev/ddev-utilities:latest              Pulled                     2.1s
 ✔ Image ddev/ddev-xhgui:v1.25.2                 Pulled                     2.2s
 ✔ Image ddev/ddev-dbserver-mariadb-11.8:v1.25.2 Pulled                     9.1s
Successfully downloaded DDEV images

And otherwise if everything is pulled, it shows the expected value:

$ ddev utility download-images
Downloading basic images 
[+] pull 6/6
 ✔ Image ddev/ddev-dbserver-mariadb-11.8:v1.25.2          Pulled            1.9s
 ✔ Image ddev/ddev-utilities:latest                       Pulled            1.6s
 ✔ Image ddev/ddev-webserver:20260427_stasadev_dockerfile Pulled            1.4s
 ✔ Image ddev/ddev-ssh-agent:v1.25.2                      Pulled            1.6s
 ✔ Image ddev/ddev-xhgui:v1.25.2                          Pulled            1.6s
 ✔ Image ddev/ddev-traefik-router:v1.25.2                 Pulled            1.6s
Successfully downloaded DDEV images

I don't know what these numbers mean, if they are layers that are pulled or something else, but this logic comes from Docker Compose, not from our code, which didn't change anything.

@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.

Thanks for noticing and fixing.

@stasadev
stasadev merged commit 23e5179 into ddev:main Apr 29, 2026
37 of 38 checks passed
@stasadev
stasadev deleted the 20260428_stasadev_download_images branch April 29, 2026 17:30
@tyler36

tyler36 commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

@stasadev Thank you for the ddev utility download-images explanation. I appreciated the followup. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants