/docker-tmpwatch

Docker image which runs tmpwatch.

Apache License 2.0Apache-2.0

docker-tmpwatch

Docker image which runs tmpwatch. This is useful for removing old files from a filesystem.

This image is based on the official Fedora 23 image.

Building

To build the image, run:

$ docker build -t tmpwatch .

Running

This image declares an entrypoint to the tmpwatch executable. Simply add options when running the container.

To get help on using using the tmpwatch command, simply run it with no arguments:

$ docker run --rm ajsmith/tmpwatch

To remove files more than 7 days old from a container volume, run:

$ docker run --rm --volumes-from=my-container ajsmith/tmpwatch 7d /path/to/volume

In the example above, replace my-container with the appropriate container identifier.