public boolean hasNetwork(String networkName) throws DockerAccessException {
        return getNetworkByName(networkName) != null;
    }
Check whether a network with the given name exists

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