private void startContainer ( ) throws DockerException { final long startTime = System . currentTimeMillis ( ) ; try { LOGGER . info ( "Starting container {} with id {}" , containerConfig . image ( ) , containerId ) ; client . startContainer ( containerId ) ; } catch ( DockerException | InterruptedException e ) { throw new DockerException ( "Unable to start container " + containerConfig . image ( ) + " with id " + containerId , e ) ; } finally { final long elapsedMillis = System . currentTimeMillis ( ) - startTime ; LOGGER . info ( "Container {} started in {}ms" , containerConfig . image ( ) , elapsedMillis ) ; } }
Instructs Docker to start the container