Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: remove containers on creation failures
The docker creation API calls may fail with http errors (e.g. timeout) even if container was successfully created. Here, we force remove container if we got unexpected failure. We already do this in some error handlers, and this commit updates all paths. I stopped short from a more aggressive refactoring, as the code is ripe for refactoring and would rather do that in another PR.
- Loading branch information