public boolean hasContainer(String containerName) throws DockerAccessException {
        return getContainer(containerName) != null;
    }
Check whether a container with the given name exists

@param containerName container name
@return true if a container with this name exists, false otherwise.
@throws DockerAccessException
src/main/java/io/fabric8/maven/docker/service/QueryService.java