Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #27 from aripringle/apiversion
Browse files Browse the repository at this point in the history
add support for DOCKER_API_VERSION
  • Loading branch information
mikljohansson authored Jun 13, 2016
2 parents 572cfa6 + 57fa694 commit 928d61f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ENV CLEAN_PERIOD=**None** \
KEEP_IMAGES=**None** \
KEEP_CONTAINERS=**None** \
LOOP=true \
DEBUG=0
DEBUG=0 \
DOCKER_API_VERSION=1.20

# run.sh script uses some bash specific syntax
RUN apk add --update bash docker grep
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The default parameters can be overridden by setting environment variables on the
* **KEEP_CONTAINERS_NAMED** - List of names for exited or dead containers to avoid cleaning, e.g. "my-container1, persistent-data".
* **LOOP** - Add the ability to do non-looped cleanups, run it once and exit. Options are true, false. Defaults to true to run it forever in loops.
* **DEBUG** - Set to 1 to enable more debugging output on pattern matches
* **DOCKER_API_VERSION** - The docker API version to use. This defaults to 1.20, but you can override it here in case the docker version on your host differs from the one that is installed in this container. You can find this on your host system by running `docker version --format '{{.Client.APIVersion}}'`.

Note that **KEEP_IMAGES**, **KEEP_CONTAINERS**, and **KEEP_CONTAINERS_NAMED** are left-anchored bash shell pattern matching lists (NOT regexps). Therefore, the image **foo/bar:tag** will be matched by ANY of the following:

Expand Down

0 comments on commit 928d61f

Please sign in to comment.