Skip to content

Commit

Permalink
Do not run "docker ps -a" in ResourceReaper to avoid TooLongFrameExce…
Browse files Browse the repository at this point in the history
…ption from Netty
  • Loading branch information
bsideup authored and rnorth committed Mar 1, 2017
1 parent 1bb0a1b commit 8c14b99
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@ public void stopAndRemoveContainer(String containerId, String imageName) {
}

private void stopContainer(String containerId, String imageName) {

List<Container> allContainers = dockerClient.listContainersCmd().withShowAll(true).exec();

if (allContainers.stream().map(Container::getId).noneMatch(containerId::equals)) {
LOGGER.trace("Was going to clean up container but it apparently no longer exists: {}");
return;
}

boolean running;
try {
InspectContainerResponse containerInfo = dockerClient.inspectContainerCmd(containerId).exec();
Expand Down

0 comments on commit 8c14b99

Please sign in to comment.