$dockerrun--rmcontainrrr/watchtower-hWatchtowerautomaticallyupdatesrunningDockercontainerswheneveranewimageisreleased.Moreinformationavailableathttps://github.com/containrrr/watchtower/.Usage:watchtower [flags]Flags:-a,--api-versionstringapiversiontousebydockerclient (default "1.24")-c,--cleanupremovepreviouslyusedimagesafterupdating-d,--debugenabledebugmodewithverboselogging --enable-lifecycle-hooks Enable the execution of commands triggered by pre- and post-update lifecycle hooks
-h,--helphelpforwatchtower-H,--hoststringdaemonsockettoconnectto (default "unix:///var/run/docker.sock")-S,--include-stoppedWillalsoincludecreatedandexitedcontainers-i,--intervalintpollinterval (in seconds) (default300) -e, --label-enable watch containers where the com.centurylinklabs.watchtower.enable label is true
-m,--monitor-onlyWillonlymonitorfornewimages,notupdatethecontainers--no-pulldonotpullanynewimages--no-restartdonotrestartanycontainers--notification-email-delayintDelaybeforesendingnotifications,expressedinseconds--notification-email-fromstringAddresstosendnotificationemailsfrom--notification-email-serverstringSMTPservertosendnotificationemailsthrough--notification-email-server-passwordstringSMTPserverpasswordforsendingnotifications--notification-email-server-portintSMTPserverporttosendnotificationemailsthrough (default 25)--notification-email-server-tls-skip-verify Controls whether watchtower verifies the SMTP server's certificate chain and host name.
Shouldonlybeusedfortesting.--notification-email-server-userstringSMTPserveruserforsendingnotifications--notification-email-subjecttagstringSubjectprefixtagfornotificationsviamail--notification-email-tostringAddresstosendnotificationemailsto--notification-gotify-tokenstringTheGotifyApplicationrequiredtoquerytheGotifyAPI--notification-gotify-urlstringTheGotifyURLtosendnotificationsto --notification-msteams-data The MSTeams notifier will try to extract log entry fields as MSTeams message facts
--notification-msteams-hookstringTheMSTeamsWebHookURLtosendnotificationsto --notification-slack-channel string A string which overrides the webhook's default channel. Example: #my-custom-channel
--notification-slack-hook-urlstringTheSlackHookURLtosendnotificationsto--notification-slack-icon-emojistringAnemojicodestringtouseinplaceofthedefaulticon--notification-slack-icon-urlstringAniconimageURLstringtouseinplaceofthedefaulticon --notification-slack-identifier string A string which will be used to identify the messages coming from this watchtower instance (default "watchtower")
-n,--notificationsstringsnotificationtypestosend (valid: email,slack,msteams,gotify) --notifications-level string The log level used for sending notifications. Possible values: panic, fatal, error, warn, info or debug (default "info")
--remove-volumesremoveattachedvolumesbeforeupdating --revive-stopped Will also start stopped containers that were updated, if include-stopped is active
-R,--run-onceRunoncenowandexit-s,--schedulestringthecronexpressionwhichdefineswhentoupdate-t,--stop-timeoutdurationtimeoutbeforeacontainerisforcefullystopped (default 10s)-v,--tlsverifyuseTLSandverifytheremote