I have an image with code that I need to update very often. In order to see the new changes I have to delete the containers and create a new docker-compose.
Is there another way to do it?
I have an image with code that I need to update very often. In order to see the new changes I have to delete the containers and create a new docker-compose.
Is there another way to do it?
You can upload the version of the containers and deploy them with the new version so you don't have to delete the containers to take the changes
I've been trying many things for a few weeks and the only one that has definitely worked for me is the following:
In this way only the images and files with changes are updated and it is not necessary to do the re-build
Containers are automatically deleted when you do:
Maybe you mean to delete the images, for that I would recommend you to build your images inside the docker-compose.
So:
Or something more advanced like:
You can see more details at: https://docs.docker.com/compose/compose-file/compose-file-v3/#build