-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not tag intermediate images to allow for automatic pruning #60
Conversation
…utomatic pruning Docker images need to be cleaned up from time to time to not fill up the file system with obsolete images. This is typically done by running `docker image prune` or `docker system prune`. This command does not remove tagged images by default. In fact, there is no need for rocker to assign tags to the intermediate images. The image IDs work just fine.
The CI on this is failing on Python 3.5 https://travis-ci.org/osrf/rocker/jobs/583145753
The Match appears to only work with subscriptable elements in 3.6 and higher: |
Codecov Report
@@ Coverage Diff @@
## master #60 +/- ##
==========================================
+ Coverage 83.33% 84.49% +1.15%
==========================================
Files 5 5
Lines 390 374 -16
==========================================
- Hits 325 316 -9
+ Misses 65 58 -7
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks this is definitely cleaner. I fixed up the regex usage in python 3.5 to pass CI.
* Do not tag images with rocker-... or rocker__detection to allow for automatic pruning Docker images need to be cleaned up from time to time to not fill up the file system with obsolete images. This is typically done by running `docker image prune` or `docker system prune`. This command does not remove tagged images by default. In fact, there is no need for rocker to assign tags to the intermediate images. The image IDs work just fine.
Docker images need to be cleaned up from time to time to not fill up the file system with obsolete images. This is typically done by running
docker image prune
ordocker system prune
. This command does not remove tagged images by default, unless called with-a
. The latter is typically not what you want, because it also removes all the images pulled from Docker Hub or other remote registries.In fact, there is no need for Rocker to assign tags to the intermediate images. The image IDs work just fine.
This patch also renders #52 obsolete.