[BUG] `docker compose pull` does not update images that are used in volumes with `type=image`
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 38.2k
- Forks
- 5.8k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 55
Description
Description
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:
services:
nginx:
image: "nginx:alpine"
volumes:
- type: image
source: mattfly/obsidian:latest
target: /srv/http/ObsidianIRC
image:
subpath: usr/share/nginx/html/
- do
docker compose upand then ctrl-c - wait untill a new release be pushed to
mattfly/obsidian:latest - do
docker compose pull - you expect to new version
mattfly/obsidian:latestbe pulled but it does not and doingdocker compose upwill run container with the old version ofmattfly/obsidian:latest
Compose Version
Docker Compose version v5.1.3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied compose.yaml and reproduce the behavior using docker compose up, then docker compose pull after mattfly/obsidian:latest changes. Trace the docker compose pull entry point for volumes with type=image and add a regression test showing that the referenced image is updated; done means pull refreshes that image and docker compose up uses the new version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, go
- Domain
- cli, devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100