From 7fe6dc62c793c9a6c4f4479c3acfdc19f4fde712 Mon Sep 17 00:00:00 2001 From: Jean-Denis Vauguet Date: Fri, 29 May 2020 06:16:30 +0200 Subject: [PATCH] Updated Update and cleanup (markdown) --- .../advanced/maintenance/update-and-cleanup.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/content/advanced/maintenance/update-and-cleanup.md b/docs/content/advanced/maintenance/update-and-cleanup.md index 48491b33..c6f07ce2 100644 --- a/docs/content/advanced/maintenance/update-and-cleanup.md +++ b/docs/content/advanced/maintenance/update-and-cleanup.md @@ -1,4 +1,4 @@ -# Automatic update +## Automatic update Docker images are handy but it can get a a hassle to keep them updated. Also when a repository is automated you want to get these images when they get out. @@ -14,15 +14,11 @@ services: - /var/run/docker.sock:/var/run/docker.sock ``` -For more details see the [manual](https://containrrr.github.io/watchtower/) +For more details, see the [manual](https://containrrr.github.io/watchtower/) +## Automatic cleanup -*** - - -# Automatic cleanup - -When you are pulling new images in automaticly it is nice to have them cleaned as well. There is also a docker images for this (from Spotify). The image is: [spotify/docker-gc](https://hub.docker.com/r/spotify/docker-gc/). +When you are pulling new images in automatically, it would be nice to have them cleaned up as well. There is also a docker image for this: [spotify/docker-gc](https://hub.docker.com/r/spotify/docker-gc/). A docker-compose example: ```yaml @@ -34,6 +30,6 @@ services: - /var/run/docker.sock:/var/run/docker.sock ``` -For more details see the [manual](https://github.com/spotify/docker-gc/blob/master/README.md) +For more details, see the [manual](https://github.com/spotify/docker-gc/blob/master/README.md) -Or you can just use the "--cleanup" option on v2tec/watchtower. :-) \ No newline at end of file +Or you can just use the [`--cleanup`](https://containrrr.github.io/watchtower/arguments/#cleanup) option provided by containrrr/watchtower. \ No newline at end of file