Answer the question
In order to leave comments, you need to log in
What is the best way to organize the process of updating Docker containers when using image files and without the Internet?
In a situation with existing restrictions - an isolated network, there is no way to update Docker images through the registry from the Internet, so the option remains when the images in the new version of the services are uploaded to files and then brought to the customer.
In other words, you need to update containers offline.
Therefore, there are:
- one and a half dozen services launched through Docker-Compose;
- using docker save -o image_name.tar files are created
Next question - how best to organize the update process? This will be done by a script.
Here is a list of steps:
1) stop the current instance: docker-compose down
2) destroy everything that is not running in docker: docker system prune -a -f
3) for each service we do docker load -i image_name.tar
4) we start everything again docker-compose up -d
Is this the right solution or can something be done differently in case of an offline update? Step 2 confuses me - how else to make sure that the image version is updated?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question