Docker#delete_container: rescue on "device or resource busy" error#7
Conversation
There was a problem hiding this comment.
The begin and end aren't necessary, since this method is so short.
Do you know which other errors delete might raise? I think it'd be fine to swallow any Docker::Error::ServerError. It might be nice to log them.
The containers I looked at were gone from docker, but they were still on disk. So |
66904c7 to
9be5319
Compare
9be5319 to
b863f08
Compare
|
@spraints Added a (kind of gross) test and updated the method. Let me know what you think! |
|
This looks ok. 👍 The test doesn't seem to do all that much, since it's all mock interactions. Do you think it's worth keeping the test? |
|
It kept me from forgetting the ::Docker. Not a high-value test but felt bad Matt Burke notifications@github.com schrieb am Sa., 23. Jan. 2016 um
|
Yeah, that makes sense. Tests that mostly exercise stubs feel weird to me. The |
Docker#delete_container: rescue on "device or resource busy" error
@spraints Not really sure the best way to go about testing this change, but this should help us handle moby/moby#9665.
Hoosegow does automatically attempt to delete the container once the process ends. Would a better option be to
sleep 1and try to delete again? Seems crazy but maybe that’d quell the “resource busy” errors we see.