Mastodon hachyterm.io

Lately, I needed to run testcontainers with Orbstack.

Unfortunately, running my integration tests with dotnet test yielded the following error:

System.AggregateException
One or more errors occurred. (Docker is either not running or misconfigured.
Please ensure that Docker is running and that the endpoint is properly configured.
You can customize your configuration using either the environment variables or the ~/.testcontainers.properties file. For more information, visit:

In the end, I used the same solution for Orbstack as I did for using testcontainer with colima. I overrode the docker host detection by setting environment variables in my (Fish) shell:

set -x TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE /var/run/docker.sock
set -x DOCKER_HOST unix://{$HOME}/.orbstack/run/docker.sock

Unfortunately, this does not seem to work within Rider. That’s why I am running those tests in my shell right now instead of my IDE.