You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] docker compose pull does not update images that are used in volumes with type=image #13809
I use volumes with type=image a lot. offen because it allows me add static apps to nginx without having a seperate container running another nginx. this works prefectly but I don't have a way to automatically update the used images. I can iterate and do docker pull on each image but i think the purpose of docker compose pull was exactly to do that.
Steps To Reproduce
for example create compose.yaml with this content:
wait untill a new release be pushed to mattfly/obsidian:latest
do docker compose pull
you expect to new version mattfly/obsidian:latest be pulled but it does not and doing docker compose up will run container with the old version of mattfly/obsidian:latest
Not a maintainer, but this looks consistent with the current pull path.
docker compose pull iterates project.Services and pulls only service.Image. Image-volume sources are handled separately in pullRequiredImages(), where vol.Type == types.VolumeTypeImage creates a fake ServiceConfig only when that image is missing locally.
That would explain the behavior here: a missing image volume can be pulled during the required-images path, but docker compose pull does not refresh an already-present image that is referenced only as a volume source.
A likely fix is for the explicit pull command to also enumerate service.Volumes with vol.Type == types.VolumeTypeImage and treat vol.Source as a pull target, ideally with similar tag/latest and pull-policy handling as normal service images. A regression test could reuse the image-volume fixture pattern and assert that docker compose pull includes the volume image source.
Activity
vaguul commentedon Jun 1, 2026
Not a maintainer, but this looks consistent with the current pull path.
docker compose pulliteratesproject.Servicesand pulls onlyservice.Image. Image-volume sources are handled separately inpullRequiredImages(), wherevol.Type == types.VolumeTypeImagecreates a fakeServiceConfigonly when that image is missing locally.That would explain the behavior here: a missing image volume can be pulled during the required-images path, but
docker compose pulldoes not refresh an already-present image that is referenced only as a volume source.A likely fix is for the explicit
pullcommand to also enumerateservice.Volumeswithvol.Type == types.VolumeTypeImageand treatvol.Sourceas a pull target, ideally with similar tag/latest and pull-policy handling as normal service images. A regression test could reuse the image-volume fixture pattern and assert thatdocker compose pullincludes the volume image source.Pull images used in volumes with type=image
beanscg commentedon Jun 10, 2026
Bean Labs took a public-source pass on this issue.
The narrowest useful next step looks like: Offer to build a minimal repro or fixture around
compose.yamland report the exact observed behavior.Public evidence checked:
docker/compose; repo licenseApache-2.0; no assignee; 1 comments.A good acceptance check would be a narrow public change that directly exercises the issue's reported boundary.
No PR opened from this pass.
Pull images used in volumes with type=image
Pull images used in volumes with type=image
Pull images used in volumes with type=image
dorian-terbah commentedon Nov 16, 2026
I have a similar issue on my side. I tested to only pull images on a dummy compose file using
docker compose pull.The compose file is this one :
The
busydboximage is never pulled, whereas if I up the stack, the image is pulledPull images used in volumes with type=image