public void waitForExit ( ) throws InterruptedException { try { dockerClient . waitContainer ( container . id ( ) ) ; } catch ( DockerException e ) { throw new IllegalStateException ( e ) ; } }
Block until container exit .