Add no-pull label for containers

This commit is contained in:
Nedžad Alibegović 2022-10-07 21:30:46 +02:00
parent 9cee9e02d0
commit 18e95081bc
3 changed files with 30 additions and 13 deletions

View file

@ -276,7 +276,7 @@ func (client dockerClient) RenameContainer(c Container, newName string) error {
func (client dockerClient) IsContainerStale(container Container) (stale bool, latestImage t.ImageID, err error) {
ctx := context.Background()
if !client.PullImages {
if !client.PullImages || container.IsNoPull() {
log.Debugf("Skipping image pull.")
} else if err := client.PullImage(ctx, container); err != nil {
return false, container.SafeImageID(), err