浏览代码

Update 'watchtower'

Laurie Summers 1 年之前
父节点
当前提交
7bab1a8ec7
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      watchtower

+ 5 - 1
watchtower

@@ -2,4 +2,8 @@ Running Watchtower for updateing docker containers https://hub.docker.com/r/cont
 
 docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower
 
-See https://containrrr.dev/watchtower/arguments/ for usage instructions
+See https://containrrr.dev/watchtower/arguments/ for usage instructions
+
+if you want to remove old images new cotainer started then use 
+docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower /
+Argument: --cleanup Environment Variable: WATCHTOWER_CLEANUP Type: Boolean Default: false