/
How to run tests with TestContainers without Docker Desktop (MacOS)
How to run tests with TestContainers without Docker Desktop (MacOS)
Step-by-step guide
- Remove the Docker Desktop from the machine.
- Download the Rancher Desktop installer from the release page (aarch64 for Apple processors, x86_64 for Intel)
- Install Rancher Desktop
- Open settings and configure Docker Desktop in the following way:
- Disable Administrative Access in the General Section:
- Change Virtual Machine Type to VZ:
- Change Container Engine to dockerd(moby)
- Optionally: adjust hardware parameters
- Restart your computer and reopen Rancher Desktop
- Add the next environment variables and run your tests:
export DOCKER_HOST=unix://$HOME/.rd/docker.sock export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock export TESTCONTAINERS_HOST_OVERRIDE=$(rdctl shell ip a show vznat | awk '/inet / {sub("/.*",""); print $2}')
, multiple selections available,
Related content
Ramsons (R2 2024)
Ramsons (R2 2024)
Read with this
How to Use Testcontainers in Integration Tests
How to Use Testcontainers in Integration Tests
More like this
How to run tests with TestContainers without Docker Desktop (Windows 10/11)
How to run tests with TestContainers without Docker Desktop (Windows 10/11)
More like this
D2IR Mock Server Deployment in Rancher
D2IR Mock Server Deployment in Rancher
More like this
Use of Testcontainers for test infrastructure
Use of Testcontainers for test infrastructure
More like this
Configuring Your Local Development Environment
Configuring Your Local Development Environment
More like this