Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 756 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 756 Bytes

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.