fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
1.1k stars 35 forks source link

Watching base image ? #353

Open r3mi opened 7 months ago

r3mi commented 7 months ago

Hello, thanks for What's up Docker, very useful ! Question: is there a way to watch "base" image ?

Sometime, I need to customize released images, e.g.

FROM imageA:versionA
RUN some small customization

In that example, is there an easy way to watch for "imageA" ?

More complex example, when "merging" 2 images:

FROM imageB:versionB AS bb
FROM imageC:versionC
COPY --from=bb /some /stuff

In that example, is there an easy way to watch for "imageB" and "imageC" ?

Thanks !

fmartinou commented 7 months ago

Hi,

Right now, there is no possibility to watch base images.

wud is only watching containers, not Dockerfiles.

I'm not aware of any possible solution to get the FROM information from a container; do you?

r3mi commented 7 months ago

hello, thanks, or may be , would it make sense to add a specific label to provide the image reference ? e.g.

services:
  mariadb:
    build:
      dockerfile_inline: |
        FROM mariadb:10.4.5
        RUN some customization  
      ...
    labels:
      - wud.baseimage=mariadb:10.4.5
RichyHBM commented 4 months ago

+1 from me, a specific example from me is a vscode image where I FROM it to add additional cmd tools for other plugins. Being able to override the image name from a label would be a great addition

kuya1284 commented 2 weeks ago

I came here for this same reason. I'm using Dockerfile to rebuild NGINX with the GeoIP2 module. I was hoping there would be a label. I might have to go back to using an entrypoint script until this suggestion gets implemented.