mirror of
https://github.com/containrrr/watchtower.git
synced 2026-02-22 07:04:07 +01:00
Add no-pull label for containers
This commit is contained in:
parent
9cee9e02d0
commit
18e95081bc
3 changed files with 30 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue