Error while running ./dbench setup docker

Successfully installed pip-19.2.3 setuptools-41.2.0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:19 --:–:-- 0curl: (6) Could not resolve host:
ERROR: Service ‘frappe’ failed to build: The command ‘/bin/sh -c apt-get update && apt-get install -y --no-install-suggests --no-install-recommends build-essential cron curl git iputils-ping libffi-dev liblcms2-dev libldap2-dev libmariadbclient-dev libsasl2-dev libssl-dev libtiff5-dev libwebp-dev mariadb-client python-dev python-pip python-setuptools python-tk redis-tools rlwrap software-properties-common sudo tk8.6-dev vim xfonts-75dpi xfonts-base wget wkhtmltopdf && apt-get clean && rm -rf /var/lib/apt/lists/* && pip install --upgrade setuptools pip --no-cache && curl > node.deb && dpkg -i node.deb && rm node.deb && npm install -g yarn’ returned a non-zero code: 6

I am running on MacOS. Getting this error while trying to setup docker.