How to pull a fresh copy of an image from a repository which is already pulled before and present locally?

Hi All,

I am new to docker and I need help in clearing a doubt.

Suppose I have pulled an image from a repository and it is locally available. I made some changes in the image which I want to preserve. Now I want to pull a fresh copy of the same image from the same repository. I want to keep both the version of the image running in my local space. When I do the second pull, the old image is replicated and I don’t get a fresh copy of the image.

How can I achieve it if possible?

Any help is appreciated.
Thanks.