Error on trying to install python libraries

Getting this error.

java.io.IOException: Could not create the docker image. Exit code: 1 out: #2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#1 [internal] load build definition from dockerFile_demo_ml
#1 transferring dockerfile: 552B done
#1 DONE 0.1s

#3 resolve image config for docker.io/docker/dockerfile:experimental
#3 DONE 0.0s

#4 docker-image://docker.io/docker/dockerfile:experimental
#4 CACHED

#5 [internal] load metadata for registry.service.consul:4443/demo_ml...
#5 DONE 0.0s

#6 [1/2] FROM registry.service.consul:4443/demo_ml:1630576459785-3...
#6 DONE 0.0s

#7 [internal] load build context
#7 transferring context: 233B done
#7 DONE 0.0s

#6 [1/2] FROM registry.service.consul:4443/demo_ml:1630576459785-3...
#6 CACHED

#8 [2/2] RUN --mount=type=bind,source=.condarc,target=/root/.condarc --moun...
#8 13.76 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/hsfs/
#8 25.27 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/hsfs/
#8 42.28 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/hsfs/
#8 55.30 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/hsfs/
#8 72.31 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/hsfs/
#8 88.33 ERROR: Could not find a version that satisfies the requirement hsfs==2.3.0 (from versions: none)
#8 88.33 ERROR: No matching distribution found for hsfs==2.3.0
#8 ERROR: executor failed running [/bin/sh -c /srv/hops/anaconda/envs/theenv/bin/pip install --upgrade hsfs==2.3.0 && /srv/hops/anaconda/bin/conda clean -afy && rm -rf ~/.cache && rm -rf /usr/local/share/.cache && /srv/hops/anaconda/bin/conda list -n theenv]: runc did not terminate sucessfully
------
> [2/2] RUN --mount=type=bind,source=.condarc,target=/root/.condarc --mount=type=bind,source=.pip,target=/root/.pip /srv/hops/anaconda/envs/theenv/bin/pip install --upgrade hsfs==2.3.0 && /srv/hops/anaconda/bin/conda clean -afy && rm -rf ~/.cache && rm -rf /usr/local/share/.cache && /srv/hops/anaconda/bin/conda list -n theenv:
------
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = failed to build LLB: executor failed running [/bin/sh -c /srv/hops/anaconda/envs/theenv/bin/pip install --upgrade hsfs==2.3.0 && /srv/hops/anaconda/bin/conda clean -afy && rm -rf ~/.cache && rm -rf /usr/local/share/.cache && /srv/hops/anaconda/bin/conda list -n theenv]: runc did not terminate sucessfully

err: ||

If you are trying to install hsfs 2.3.0 on hopsworks 2.2, it will not work.
hsfs 2.3.x is for hopsworks 2.0.

Problem was solved with editing Consul config. Now all works as intended.