I have seen some articles that use docker for continuous integration. The code of the program is encapsulated in image. Every time a new submission is made, it will generate a new image, and then go to the host running container to stop container, remove container, to pull the new image, run container,. So this process will not cause running service interruption?
I now have a project organized in docker-compose. If you also want to encapsulate the code in image, is there any appropriate process for updating the code in the production environment?