Skip to content
Snippets Groups Projects

Docker WatchTower Create Container Command

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Rob Hunter

    Docker WatchTower Create Container Command

    docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --cleanup --schedule 0 0 0 * * *

    create new container --named watchtower from image container/watchtower

    with volume attachment external /var/run/docker.sock and internal /var/run/docker.sock

    --cleanup old volumes when updating containers

    --schedule every 24 hours at midnight

    Edited
    watchtower 132 B
    docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --cleanup --schedule 0 0 0 * * * 
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment