lib/hoosegow/docker.rb in hoosegow-1.2.2 vs lib/hoosegow/docker.rb in hoosegow-1.2.3
- old
+ new
@@ -125,9 +125,11 @@
#
# Returns response body or nil if no container was started.
def delete_container
return unless @container
@container.delete
+ rescue ::Docker::Error::ServerError => e
+ $stderr.puts "Docker could not delete #{@container.id}: #{e}"
end
# Public: Build a new image.
#
# name - The name to give the image.