Skip to content

[BUG] docker compose pull does not update images that are used in volumes with type=image #13809

@oskolist

Description

@oskolist

Description

I use volumes with type=image a lot. offen because to 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 doing 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 up and 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:latest be pulled but it does not and doing docker compose up will run container with the old version of mattfly/obsidian:latest

Compose Version

Docker Compose version v5.1.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions