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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48a5e-4398a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48a5e-4398a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?