My team is new to maintaining images on Docker Hub. We hadn't yet identified the best practices for how to publish an image for the same ClamAV version with a new base image. After a little investigation, I settled on this on this scheme.
I have published these new newly built images based on the latest Alpine Linux image (3.15.0):
- clamav/clamav:0.104.2-2_base
- clamav/clamav:0.104.2-2
The previous images remain accessible under "clamav/clamav:0.104.2_base" and "clamav/clamav:0.104.2" tags.
If we must do this again before the next patch version, the next image tags would be "0.104.2-3_base" and "0.104.2-3".
Note: the hashes for the image tags without the "_base" suffix change frequently because we update them with newer signature databases.
I also updated the following tags so that people using them can simply "pull" to get the newer image:
- clamav/clamav:stable_base == clamav/clamav:latest_base ==
clamav/clamav:0.104_base == clamav/clamav:0.104.2-2_base
- clamav/clamav:stable == clamav/clamav:latest ==
clamav/clamav:0.104 == clamav/clamav:0.104.2-2