/** * Stops the container. */ @Override public void stop() { if (containerId == null) { return; } try { String imageName; try { imageName = image.get(); } catch (Exception e) { imageName = "<unknown>"; } ResourceReaper.instance().stopAndRemoveContainer(containerId, imageName); } finally { containerId = null; containerInfo = null; } }
/** * Stops the container. */ @Override public void stop() { if (containerId == null) { return; } try { String imageName; try { imageName = image.get(); } catch (Exception e) { imageName = "<unknown>"; } ResourceReaper.instance().stopAndRemoveContainer(containerId, imageName); } finally { containerId = null; containerInfo = null; } }