CMSgov / price-transparency-guide-validator

Validation tool to check output files required by the price-transparency-guide
Apache License 2.0
29 stars 13 forks source link

Docker container orphans #65

Closed glsobeck closed 1 year ago

glsobeck commented 2 years ago

Can you add at least --rm to the docker command so that we don't end up with orphaned containers? I didn't notice this until today my Docker desktop instance on Mac OSX was loading 100s of container orphans into a list. This really slows down my boot processes on Monday mornings.

glsobeck commented 2 years ago

You can remove them via docker rm -vf $(docker ps -qa) Right now it's the only way to deal with them w/o spending effort into pattern matching output w/o -q arg in docker ps

shaselton-usds commented 2 years ago

@mint-thompson would it be possible to take a peek into this?

olderthandirt5 commented 2 years ago

@glsobeck Thanks for that snippet. I found that I had over 1000 orphan containers, and will probably create that many each month.

mint-thompson commented 1 year ago

@glsobeck Thank you for reporting this issue. A pull request has been created that incorporates your recommendation to add the --rm flag.