Skip to content

Commit

Permalink
Fix docker-compose syntax in quick-start. GH containrrr#1105
Browse files Browse the repository at this point in the history
  • Loading branch information
atombrella committed Dec 19, 2021
1 parent d2f1185 commit bb10157
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,21 @@ and restart it with the same options that were used when it was deployed initial
the following command:

=== "docker run"
```bash
$ docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower
```

```bash
$ docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower
```

=== "docker-compose.yml"
```yaml
version: "3"
services:
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
```

```yaml
version: "3"
services:
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
```

0 comments on commit bb10157

Please sign in to comment.