Skip to content
Lifecycle Hooks

Lifecycle Hooks

Enable Lifecycle Hooks

Enables lifecycle hook execution. Lifecycle hooks are disabled by default.

            Argument: --enable-lifecycle-hooks
Environment Variable: WATCHTOWER_LIFECYCLE_HOOKS
                Type: Boolean
             Default: false

Lifecycle UID

Sets the default user ID to run lifecycle hooks as when no container-specific UID is specified.

            Argument: --lifecycle-uid
Environment Variable: WATCHTOWER_LIFECYCLE_UID
                Type: Integer
              Default: None

Container-specific labels (com.centurylinklabs.watchtower.lifecycle.uid) take precedence over this global setting.

See Lifecycle Hooks.

Lifecycle GID

Sets the default group ID to run lifecycle hooks as when no container-specific GID is specified.

            Argument: --lifecycle-gid
Environment Variable: WATCHTOWER_LIFECYCLE_GID
                Type: Integer
              Default: None

Container-specific labels (com.centurylinklabs.watchtower.lifecycle.gid) take precedence over this global setting.

See Lifecycle Hooks.

Last updated on