I am new to the dockers so don't really know how to update docker image. I have a python code and I have created its docker image using the below command:
sudo docker build -t mycustomdocker .
After this is done, I can see my docker image using sudo docker images. To run it, I can use:
sudo docker run --restart=always mycustomdocker
This will start its container and with restart always, it will always be running.
Now I want to know for example, I have updated my python code and added some new feature into it. So after updating the python code, its image mycustomdocker automatically gets updated or we need to run any update command for it.? Or do we need to again stop the container, then delete the existing image and again build the image?
Thanks