mirror of
https://github.com/thegeeklab/docker-tidy.git
synced 2024-09-28 02:08:10 +00:00
use a warning message if no arguments were passed
This commit is contained in:
parent
e2874642e1
commit
a64c63d2cb
@ -86,4 +86,4 @@ class AutoStop:
|
|||||||
self.stop_containers()
|
self.stop_containers()
|
||||||
|
|
||||||
if not config["stop"]["max_run_time"]:
|
if not config["stop"]["max_run_time"]:
|
||||||
self.logger.info("Skipped, no arguments given")
|
self.logger.warn("Skipped, no arguments given")
|
||||||
|
@ -316,4 +316,4 @@ class GarbageCollector:
|
|||||||
not config["gc"]["max_container_age"] or not config["gc"]["max_image_age"]
|
not config["gc"]["max_container_age"] or not config["gc"]["max_image_age"]
|
||||||
or not config["gc"]["dangling_volumes"]
|
or not config["gc"]["dangling_volumes"]
|
||||||
):
|
):
|
||||||
self.logger.info("Skipped, no arguments given")
|
self.logger.warn("Skipped, no arguments given")
|
||||||
|
@ -21,6 +21,9 @@ $ pip install https://github.com/xoxys/docker-tidy/releases/download/v0.1.0/dock
|
|||||||
|
|
||||||
## Docker
|
## 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 -->
|
<!-- markdownlint-disable -->
|
||||||
{{< highlight Shell "linenos=table" >}}
|
{{< highlight Shell "linenos=table" >}}
|
||||||
docker run \
|
docker run \
|
||||||
|
Loading…
Reference in New Issue
Block a user