How to restart the container automatically after the docker image is updated?

in continuous integration, if the code push builds a new image later, how to restart the container and start based on the latest image if a container is running the old image? Can only stop the container-delete the container-delete the image-pull the latest image-start the container to do this?


Yes, you need a service to do continuous integration work, such as Jenkins

Menu