Skip to content

Connection refused errors on Mac M2 with Rancher Desktop #181

@nuno-barreiro

Description

@nuno-barreiro

I'm using Rancher Desktop on an Apple MacBook M2 and getting the following error:

16:28:52.922 [info] Docker host: {"http+unix://%2FUsers%2Fnbarreiro%2F.rd%2Fdocker.sock/v1.41", "unix:///Users/nbarreiro/.rd/docker.sock"}

16:28:54.904 [debug] Not running in docker environment, using localhost

16:28:55.152 [info] Connection refused. Retrying... Attempt 1/3

16:29:00.155 [info] Connection refused. Retrying... Attempt 2/3

16:29:05.157 [info] Connection refused. Retrying... Attempt 3/3

16:29:10.158 [info] Ryuk host refused to connect
** (EXIT from #PID<0.94.0>) {:error, :econnrefused}

You can check the code in this sample Repo: https://github.com/nuno-barreiro/ex_test_containers_demo/tree/master

It's a standard mix new project created with Elixir 1.18, where I added the Testcontainers.start_link() on the test/test_helper.exs file and the dependencies on mix.exs. Nothing more.

Some more info on the laptop specs:

  • Chipset: Apple M2
  • MacOS: Sequoia 15.3.1
  • Rancher Desktop: 1.18.2
  • Docker version 28.0.4, build b8034c0ed7
  • rdctl client version: 1.1.0, targeting server version: v1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions