code: public static ContainerState getContainerState( String containerId, DockerClient dockerClient ) {
  
  		ContainerState result = null;
  		try {
  			InspectContainerResponse resp = dockerClient.inspectContainerCmd( containerId ).exec();
  			if( resp != null )
  				result = resp.getState();
  
  		} catch( Exception e ) {
  			// nothing
  		}
  
  		return result;
  	}
docs: Gets the state of a container.
  @param containerId the container ID
  @param dockerClient the Docker client
  @return a container state, or null if the container was not found