Whenever I make changes to the Docker Compose file, the steps I follow are:
- Stop the container:: docker stop
- Update docker compose file
- again start container: docker compose up -d
From my understanding, this process recreates the container and destroys the existing one.
Question:
- Is my understanding correct?
- If yes, is there a way to reuse the same container, even after modifying the Docker Compose file?