Fetch images before upgrading #545

Closed
opened 2023-12-19 18:26:15 +00:00 by iexos · 3 comments

When running abra app upgrade, it sometimes takes some time before the app is running again. Observing this, I think it must be that the new images are downloaded after the app is already taken down. I don't know if its possible (and if my observation is even true), but it would be great if the images are downloaded before to significantly reduce downtime.

When running `abra app upgrade`, it sometimes takes some time before the app is running again. Observing this, I think it must be that the new images are downloaded after the app is already taken down. I don't know if its possible (and if my observation is even true), but it would be great if the images are downloaded before to significantly reduce downtime.
iexos added the
enhancement
label 2023-12-19 18:26:15 +00:00
Owner

Hmmm, we're mostly at the whim of the container runtime for this... docker pull is called on a need-to-pull basis?

However, if you run upgrade then the current app shouldn't go down? the image pull should happen in the background?

I wonder if there are some logs you can pole from the docker daemon or server / container logs?

Hmmm, we're mostly at the whim of the container runtime for this... `docker pull` is called on a need-to-pull basis? However, if you run `upgrade` then the current app shouldn't go down? the image pull should happen in the background? I wonder if there are some logs you can pole from the docker daemon or server / container logs?
decentral1se added the
abra
label 2024-03-27 06:21:14 +00:00
Owner

@iexos just to come back on this, I believe it's covered with the modified update_config, see:

So you can keep a container up while the pull is ongoing with order: start-first.

@iexos just to come back on this, I believe it's covered with the modified `update_config`, see: * https://docs.docker.com/compose/compose-file/deploy/#update_config * https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-tune-deploy-configs So you can keep a container up while the `pull` is ongoing with `order: start-first`.
decentral1se added
documentation
and removed
enhancement
labels 2024-07-10 11:49:17 +00:00
Author

Nice one, thank you! So it depends on the recipe, and that is already documented. Makes me understand the docker internals better.

Nice one, thank you! So it depends on the recipe, and that is already documented. Makes me understand the docker internals better.
iexos closed this issue 2024-07-10 21:55:41 +00:00
Sign in to join this conversation.
No description provided.