User Tools

Site Tools


systems:docker_main:install_docker_containers:install_watchtower

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
systems:docker_main:install_docker_containers:install_watchtower [2021/07/15 11:25] – created petersystems:docker_main:install_docker_containers:install_watchtower [2021/07/15 12:24] (current) peter
Line 2: Line 2:
  
 **Watchtower** monitors the running containers for changes to the image. **Watchtower** monitors the running containers for changes to the image.
 +
 +<WRAP info>
 +**NOTE:**  Once install, it requires no interaction.
  
   * It will automatically update and restart other containers.   * It will automatically update and restart other containers.
 +</WRAP>
 +
  
 ---- ----
  
 ===== Install Watchtower ===== ===== Install Watchtower =====
 +
 +Within the Docker Main host, run:
  
 <code bash> <code bash>
Line 15: Line 22:
     containrrr/watchtower     containrrr/watchtower
 </code>     </code>    
 +
 +----
 +
 +===== Confirm Watchtower is running =====
 +
 +Open Portainer.
 +
 +Press **F5** to refresh.
 +
 +<WRAP info>
 +**NOTE:** This should show the Watchtower container running.
 +</WRAP>
 +
 +----
 +
 +===== Edit Restart Policy =====
 +
 +Within Portainer:
 +
 +  * Select the Watchtower Container.
 +  * Click the **Duplicate/Edit**
 +  * Scroll down to **Advanced Container Settings**.
 +  * Select **Restart Policy**. 
 +  * Change to **Unless Stopped**.
 +  * Click **Deploy the Container**.
 +  * Click **Replace**.
 +
 +<WRAP info>
 +**NOTE:**  This ensures that the container starts automatically if the host is restarted.
 +</WRAP>
  
 ---- ----
systems/docker_main/install_docker_containers/install_watchtower.1626348344.txt.gz · Last modified: 2021/07/15 11:25 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki