Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Deep clean
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
Deep clean
Commits
3eb6894a
Commit
3eb6894a
authored
3 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Update README.
- Update the usage section. - Add an explanation.
parent
9aa0c402
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+23
-4
23 additions, 4 deletions
README.rst
with
23 additions
and
4 deletions
README.rst
+
23
−
4
View file @
3eb6894a
...
...
@@ -7,15 +7,34 @@ Deep clean
Clean old versions of Docker images.
Explanation
-----------
Remove old versions of images with same name. In cases where you updated an
image (from example from :code:`postgres:13` to :code:`postgres:14`) the old
image is present. Using :code:`docker image prune` won't help in this case
since the image is still properly tagged.
Usage
-----
.. code:: shell
usage: deepclean [-h]
usage: deepclean [-h] [-i INCLUDE] [-e EXCLUDE] [-v] [-V] [-d]
Clean old versions of Docker images.
optional arguments:
options:
-h, --help show this help message and exit
-i INCLUDE, --include INCLUDE
Regular expression of images to exclusively prune.
-e EXCLUDE, --exclude EXCLUDE
Regular expression of images to ignore.
-v, --verbose Verbose output
-V, --version show program's version number and exit
-d, --dry-run Dry-run, don't delete
Regular Docker environment variables (like DOCKER_HOST) can be used.-i and -e can be used multiple times.
License
-------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment