Let's say I have an image with tag :latest.
I'd like to duplicate the image on my PC and then give it another tag like :1.4.2
I do not want to build the image, just copy and retag it.
I occasionally need to clone docker images that clients are using as a backup when they want to try a new version. This provides them the option of easily reverting if needed.
assuming your image is called best-ui and has the tag latest we will clone this with the tag old
docker tag best-ui:latest best-ui:old
now run docker images and you will see the new cloned image with the new tag
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With