From a64c63d2cb424c64a2f585f7d08018b6aac924be Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 15 Mar 2020 13:44:48 +0100 Subject: [PATCH] use a warning message if no arguments were passed --- dockertidy/Autostop.py | 2 +- dockertidy/GarbageCollector.py | 2 +- docs/content/setup/_index.md | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dockertidy/Autostop.py b/dockertidy/Autostop.py index 0226c57..d3ea278 100644 --- a/dockertidy/Autostop.py +++ b/dockertidy/Autostop.py @@ -86,4 +86,4 @@ class AutoStop: self.stop_containers() if not config["stop"]["max_run_time"]: - self.logger.info("Skipped, no arguments given") + self.logger.warn("Skipped, no arguments given") diff --git a/dockertidy/GarbageCollector.py b/dockertidy/GarbageCollector.py index b799118..6b416a6 100644 --- a/dockertidy/GarbageCollector.py +++ b/dockertidy/GarbageCollector.py @@ -316,4 +316,4 @@ class GarbageCollector: not config["gc"]["max_container_age"] or not config["gc"]["max_image_age"] or not config["gc"]["dangling_volumes"] ): - self.logger.info("Skipped, no arguments given") + self.logger.warn("Skipped, no arguments given") diff --git a/docs/content/setup/_index.md b/docs/content/setup/_index.md index 8fd1fba..69b9388 100644 --- a/docs/content/setup/_index.md +++ b/docs/content/setup/_index.md @@ -21,6 +21,9 @@ $ pip install https://github.com/xoxys/docker-tidy/releases/download/v0.1.0/dock ## Docker +The default entrypoint is set to the `gc` subcommand and you have to overwrite it +if you want to use other subcommands like `stop`. + {{< highlight Shell "linenos=table" >}} docker run \