<p>The docker desktop is not starting yet. No wander there's failure to the connection.</p>

CC BY-SA 4.0
2021-07-04T13:19:30.053Z
2021-07-04T13:19:30.053Z
Julian Ke
<p>I am running bitcoind regtest locally with the method from this article <a href="https://medium.com/ssde/how-to-use-docker-to-setup-multiple-bitcoin-test-nodes-on-your-own-mac-phase-i-8c6e5442c189" rel="nofollow noreferrer">https://medium.com/ssde/how-to-use-docker-to-setup-multiple-bitcoin-test-nodes-on-your-own-mac-phase-i-8c6e5442c189</a>.
However, when I enter &quot;docker-compose build&quot; the error occurred as the following output:</p>
<pre><code>Traceback (most recent call last):


File &quot;urllib3/connectionpool.py&quot;, line 670, in urlopen
  File &quot;urllib3/connectionpool.py&quot;, line 392, in _make_request
  File &quot;http/client.py&quot;, line 1255, in request
  File &quot;http/client.py&quot;, line 1301, in _send_request
  File &quot;http/client.py&quot;, line 1250, in endheaders
  File &quot;http/client.py&quot;, line 1010, in _send_output
  File &quot;http/client.py&quot;, line 950, in send
  File &quot;docker/transport/unixconn.py&quot;, line 43, in connect
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;requests/adapters.py&quot;, line 439, in send
  File &quot;urllib3/connectionpool.py&quot;, line 726, in urlopen
  File &quot;urllib3/util/retry.py&quot;, line 410, in increment
  File &quot;urllib3/packages/six.py&quot;, line 734, in reraise
  File &quot;urllib3/connectionpool.py&quot;, line 670, in urlopen
  File &quot;urllib3/connectionpool.py&quot;, line 392, in _make_request
  File &quot;http/client.py&quot;, line 1255, in request
  File &quot;http/client.py&quot;, line 1301, in _send_request
  File &quot;http/client.py&quot;, line 1250, in endheaders
  File &quot;http/client.py&quot;, line 1010, in _send_output
  File &quot;http/client.py&quot;, line 950, in send
  File &quot;docker/transport/unixconn.py&quot;, line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;docker/api/client.py&quot;, line 214, in _retrieve_server_version
  File &quot;docker/api/daemon.py&quot;, line 181, in version
  File &quot;docker/utils/decorators.py&quot;, line 46, in inner
  File &quot;docker/api/client.py&quot;, line 237, in _get
  File &quot;requests/sessions.py&quot;, line 543, in get
  File &quot;requests/sessions.py&quot;, line 530, in request
  File &quot;requests/sessions.py&quot;, line 643, in send
  File &quot;requests/adapters.py&quot;, line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;docker-compose&quot;, line 3, in &lt;module&gt;
  File &quot;compose/cli/main.py&quot;, line 81, in main
  File &quot;compose/cli/main.py&quot;, line 200, in perform_command
  File &quot;compose/cli/command.py&quot;, line 60, in project_from_options
  File &quot;compose/cli/command.py&quot;, line 152, in get_project
  File &quot;compose/cli/docker_client.py&quot;, line 41, in get_client
  File &quot;compose/cli/docker_client.py&quot;, line 170, in docker_client
  File &quot;docker/api/client.py&quot;, line 197, in __init__
  File &quot;docker/api/client.py&quot;, line 221, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))
[67810] Failed to execute script docker-compose
</code></pre>
<p>I am new to bitcoin core so I have no idea what's going on.</p>

<bitcoind><regtest><connection>
Running bitcoind regtest with docker containers
Julian Ke
# Running bitcoind regtest with docker containers

(Asked by: username_0 on 2021-07-04)

I am running bitcoind regtest locally with the method from this article <https://medium.com/ssde/how-to-use-docker-to-setup-multiple-bitcoin-test-nodes-on-your-own-mac-phase-i-8c6e5442c189>.
However, when I enter "docker-compose build" the error occurred as the following output:

```
Traceback (most recent call last):

File "urllib3/connectionpool.py", line 670, in urlopen
  File "urllib3/connectionpool.py", line 392, in _make_request
  File "http/client.py", line 1255, in request
  File "http/client.py", line 1301, in _send_request
  File "http/client.py", line 1250, in endheaders
  File "http/client.py", line 1010, in _send_output
  File "http/client.py", line 950, in send
  File "docker/transport/unixconn.py", line 43, in connect
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "requests/adapters.py", line 439, in send
  File "urllib3/connectionpool.py", line 726, in urlopen
  File "urllib3/util/retry.py", line 410, in increment
  File "urllib3/packages/six.py", line 734, in reraise
  File "urllib3/connectionpool.py", line 670, in urlopen
  File "urllib3/connectionpool.py", line 392, in _make_request
  File "http/client.py", line 1255, in request
  File "http/client.py", line 1301, in _send_request
  File "http/client.py", line 1250, in endheaders
  File "http/client.py", line 1010, in _send_output
  File "http/client.py", line 950, in send
  File "docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker/api/client.py", line 214, in _retrieve_server_version
  File "docker/api/daemon.py", line 181, in version
  File "docker/utils/decorators.py", line 46, in inner
  File "docker/api/client.py", line 237, in _get
  File "requests/sessions.py", line 543, in get
  File "requests/sessions.py", line 530, in request
  File "requests/sessions.py", line 643, in send
  File "requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 81, in main
  File "compose/cli/main.py", line 200, in perform_command
  File "compose/cli/command.py", line 60, in project_from_options
  File "compose/cli/command.py", line 152, in get_project
  File "compose/cli/docker_client.py", line 41, in get_client
  File "compose/cli/docker_client.py", line 170, in docker_client
  File "docker/api/client.py", line 197, in __init__
  File "docker/api/client.py", line 221, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))
[67810] Failed to execute script docker-compose

```

I am new to bitcoin core so I have no idea what's going on.

**Tags:** bitcoind, regtest, connection


---

## 1 answers

### Answer by username_0 on 2021-07-04. Score: 0

The docker desktop is not starting yet. No wander there's failure to the connection.


---

