mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
Deployed 0c53b71
with MkDocs version: 1.1.2
This commit is contained in:
parent
e84594e7b1
commit
e7c07c8ba8
18 changed files with 295 additions and 341 deletions
27
index.html
27
index.html
|
@ -9,7 +9,7 @@
|
|||
|
||||
|
||||
|
||||
<link rel="canonical" href="http://containrrr.github.io/watchtower/">
|
||||
<link rel="canonical" href="https://containrrr.dev/watchtower/">
|
||||
|
||||
<link rel="icon" href="images/favicon.ico">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.3">
|
||||
|
@ -496,7 +496,7 @@
|
|||
<img alt="Circle CI" src="https://circleci.com/gh/containrrr/watchtower.svg?style=shield" />
|
||||
</a>
|
||||
<a href="https://codecov.io/gh/containrrr/watchtower">
|
||||
<img alt="Codecov" src="https://codecov.io/gh/containrrr/watchtower/branch/master/graph/badge.svg?token=8pxWgB380Y">
|
||||
<img alt="Codecov" src="https://codecov.io/gh/containrrr/watchtower/branch/main/graph/badge.svg">
|
||||
</a>
|
||||
<a href="https://godoc.org/github.com/containrrr/watchtower">
|
||||
<img alt="GoDoc" src="https://godoc.org/github.com/containrrr/watchtower?status.svg" />
|
||||
|
@ -525,12 +525,23 @@
|
|||
</p>
|
||||
|
||||
<h2 id="quick_start">Quick Start<a class="headerlink" href="#quick_start" title="Permanent link">¶</a></h2>
|
||||
<p>With watchtower you can update the running version of your containerized app simply by pushing a new image to the Docker Hub or your own image registry. Watchtower will pull down your new image, gracefully shut down your existing container and restart it with the same options that were used when it was deployed initially. Run the watchtower container with the following command:</p>
|
||||
<div class="codehilite"><pre><span></span><code>$ docker run -d <span class="se">\</span>
|
||||
--name watchtower <span class="se">\</span>
|
||||
-v /var/run/docker.sock:/var/run/docker.sock <span class="se">\</span>
|
||||
containrrr/watchtower
|
||||
</code></pre></div>
|
||||
<p>With watchtower you can update the running version of your containerized app simply by pushing a new image to the Docker
|
||||
Hub or your own image registry. Watchtower will pull down your new image, gracefully shut down your existing container
|
||||
and restart it with the same options that were used when it was deployed initially. Run the watchtower container with
|
||||
the following command:</p>
|
||||
<div class="tabbed-set" data-tabs="1:1"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><label for="__tabbed_1_1">docker run</label><div class="tabbed-content"></div>
|
||||
</div>
|
||||
<p>```bash $ docker run -d \
|
||||
--name watchtower \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
containrrr/watchtower
|
||||
<div class="highlight"><pre><span></span><code>=== "docker-compose.yml"
|
||||
```yaml version: "3"
|
||||
services:
|
||||
watchtower:
|
||||
image: containrrr/watchtower volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
</code></pre></div></p>
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue