Is there a way to prevent images from loading into the docker hub with the same tags as existing images? Our precedent is as follows.
We are deploying for production with a docker layout file with image tags as version numbers. In order to maintain feedback from previous environments and idempotent deployment, it is necessary that a specific labeled docker image always refer to the same image.
However, the docker hub allows you to upload images with the same tags as existing images (they override the old image). This completely violates the idea of versions of your images.
We are currently working with our build scripts, pulling out all versions of the image and looking through tags to verify that overwriting will not happen, etc., but it seems like there should be a better way.
If the docker hub does not support this, is there a way to do a docker deployment without a dock?
source
share