watchtower: github.com/containrrr/watchtower/internal/actions Index | Files

package actions

import "github.com/containrrr/watchtower/internal/actions"

Index

Package Files

check.go update.go update_params.go

func CheckForMultipleWatchtowerInstances Uses

func CheckForMultipleWatchtowerInstances(client container.Client, cleanup bool) error

CheckForMultipleWatchtowerInstances will ensure that there are not multiple instances of the watchtower running simultaneously. If multiple watchtower containers are detected, this function will stop and remove all but the most recently started container.

func Update Uses

func Update(client container.Client, params UpdateParams) error

Update looks at the running Docker containers to see if any of the images used to start those containers have been updated. If a change is detected in any of the images, the associated containers are stopped and restarted with the new image.

type UpdateParams Uses

type UpdateParams struct {
    Filter         t.Filter
    Cleanup        bool
    NoRestart      bool
    Timeout        time.Duration
    MonitorOnly    bool
    LifecycleHooks bool
}

UpdateParams contains all different options available to alter the behavior of the Update func

Package actions imports 10 packages (graph) and is imported by 3 packages. Updated 2019-09-19. Refresh now. Tools for package owners.