Skip to content

Error: Could not find a working container runtime strategy when using Apple containers #1183

@juliusmarminge

Description

@juliusmarminge

Expected Behaviour

Recognize container runtime from the container

Actual Behaviour

Doesn't recognize any runtime

Testcontainer Logs

Error: Could not find a working container runtime strategy
 ❯ getContainerRuntimeClient node_modules/.pnpm/testcontainers@11.2.1/node_modules/testcontainers/build/container-runtime/clients/client.js:67:11
 ❯ RedisContainer.start node_modules/.pnpm/testcontainers@11.2.1/node_modules/testcontainers/build/generic-container/generic-container.js:59:24
 ❯ RedisContainer.start node_modules/.pnpm/@testcontainers+redis@11.2.1/node_modules/@testcontainers/redis/build/redis-container.js:69:65

Steps to Reproduce

  1. Download and install containers using the official guide: https://github.com/apple/container#install-or-upgrade
  2. Launch any test container using `new GenericContainer().launch()
  3. See error that it can't find a container runtime strategy

Environment Information

  • Operating System: MacOS 26.1
  • Docker Version:
    Image
  • Node version: 22.20
  • Testcontainers version: 11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions