Listen on docker events and register image usage time.
## Installation
```
sudo pip install git+http://github.com/stratoscale/dim.git
```
The installation will add the dim service to systemd, make sure you reload it.
```
systemctl daemon-reload
systemctl enable dim.service
systemctl start dim.service
```
## Usage
To display the images last start time run
```
dim-display
```
example output
```
+-----------------------------------------------------------------------------------+-------------------+
| Image | Last Start Time |
+===================================================================================+===================+
| fakes3:latest | 7 hours ago |
+-----------------------------------------------------------------------------------+-------------------+
| mariadb:10.1.19 | 7 hours ago |
+-----------------------------------------------------------------------------------+-------------------+
| consul:0.9.2 | 7 hours ago |
+-----------------------------------------------------------------------------------+-------------------+
| dynamodb:latest | 7 hours ago |
+-----------------------------------------------------------------------------------+-------------------+
| postgres:latest | 2 days ago |
+-----------------------------------------------------------------------------------+-------------------+
| mariadb:10.1.26 | 6 days ago |
+-----------------------------------------------------------------------------------+-------------------+
| gotty:latest | 11 days ago |
+-----------------------------------------------------------------------------------+-------------------+
| rabbitmq:3.5.1-management | 18 days ago |
+-----------------------------------------------------------------------------------+-------------------+
```
For more options run:
```
dim-display -h
```
```
usage: dim-display [-h] [-q] [-w WHITELIST] [-m MIN_AGE] [-r] [-s {age,image}]
Display Images Last Start Time.
optional arguments:
-h, --help show this help message and exit
-q, --quiet If set, returns only the image names
-w WHITELIST, --whitelist WHITELIST
Images whitelist file
-m MIN_AGE, --min-age MIN_AGE
Minimum image age in seconds
-r, --reverse If set images will be sorted by reversed order
-s {age,image}, --sort-by {age,image}
If set images will be sorted by that attribute
```
Metadata
Release files for dim 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dim-1.0.0.tar.gz | 5.7 kB | Without provenance | Details for dim-1.0.0.tar.gz |
Release files / dim-1.0.0.tar.gz
| Download URL | dim-1.0.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90f3c1a39bcd044e51e09413afbc79c6659aff9295145a978c899546ccf1ceb6
|
|
BLAKE2b-256 checksum How to use checksums |
efac7b3e70b320ce78e9439e121413cdfee0ad00d8f4d9696b4db46bac0763bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dim 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.