Linux/Docker/Automation: Difference between revisions

From Wiki
< Linux‎ | Docker
(Die Seite wurde neu angelegt: „== Watchtower == * add to docker-compose.yml: watchtower: image: containrrr/watchtower volumes: - /var/run/docker.sock:/var/run/docker.sock…“)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


* add to docker-compose.yml:
* add to docker-compose.yml:
watchtower:
<blockquote><pre>
watchtower:
     image: containrrr/watchtower
     image: containrrr/watchtower
     volumes:
     volumes:
Line 9: Line 10:
     command: --interval 30
     command: --interval 30
     restart: always
     restart: always
</pre></blockquote>


[[Category:Linux/Docker]]
[[Category:Linux/Docker]]
[[Category:Linux]]
[[Category:Linux]]

Latest revision as of 13:32, 17 March 2020

Watchtower

  • add to docker-compose.yml:
watchtower:
    image: containrrr/watchtower
    volumes:
     - /var/run/docker.sock:/var/run/docker.sock
     - /root/.docker/config.json:/config.json
    command: --interval 30
    restart: always