use a warning message if no arguments were passed

This commit is contained in:
Robert Kaussow 2020-03-15 13:44:48 +01:00
parent e2874642e1
commit a64c63d2cb
3 changed files with 5 additions and 2 deletions

View File

@ -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")

View File

@ -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")

View File

@ -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`.
<!-- markdownlint-disable -->
{{< highlight Shell "linenos=table" >}}
docker run \