docker-compose by default may pull images from the cache. If you don’t want this to happen and want to rebuild all the containers from the scratch, the following command will help you.
docker-compose up --force-recreate
docker-compose by default may pull images from the cache. If you don’t want this to happen and want to rebuild all the containers from the scratch, the following command will help you.
docker-compose up --force-recreate
As per my understanding, It’s a very good use case where you can save time, by getting the packages from the cache. Just to understand why do we need to go ahead and execute this command and what may be the ultimate use case. I am not able to get any use-case where I may apply this. if you give me one scenario, or any live use case where we can apply this.
Sometimes if the parent image gets updated, we might have to reload fresh images from the registry.