add --restart=always for example watchtower deployment

This commit is contained in:
James Swineson 2022-05-08 11:37:38 +08:00 committed by GitHub
parent 67a986a64e
commit 3b541d4e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ Note this might break your network and your mileage may vary. You should swap `e
Use this recipe for auto updating the docker container.
```shell
docker run -d -v /var/run/docker.sock:/var/run/docker.sock --name watchtower containrrr/watchtower --cleanup --label-enable
docker run --detach --restart=always -v /var/run/docker.sock:/var/run/docker.sock --name watchtower containrrr/watchtower --cleanup --label-enable
```
Then start the RIPE Atlas container with argument `--label=com.centurylinklabs.watchtower.enable=true`.