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
Line 2: Line 2:


* add to docker-compose.yml:
* add to docker-compose.yml:
<blockquote><pre>
  watchtower:
  watchtower:
     image: containrrr/watchtower
     image: containrrr/watchtower
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]]

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