Save docmachine image in local cache #2

Open
opened 2023-04-01 14:33:25 +00:00 by glenux · 0 comments
Owner

There is no way to avoid having the image being pruned.
To avoid unnecessary pull, we should do:

if docmachine image does not exists in local registry
  if docmachine image cache exists
    load docmachine from cache
  else
    pull the docmachine image from remote registry
    save the downloaded image in cache
  endif
endif
run docmachine

Ex: ~/.cache/docmachine/docmachine.TAG.tar.bz2

There is no way to avoid having the image being pruned. To avoid unnecessary pull, we should do: ``` if docmachine image does not exists in local registry if docmachine image cache exists load docmachine from cache else pull the docmachine image from remote registry save the downloaded image in cache endif endif run docmachine ``` Ex: `~/.cache/docmachine/docmachine.TAG.tar.bz2`
glenux added this to the By Status project 2023-10-18 21:03:34 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: glenux/docmachine-cli#2
No description provided.