Skip to content

Hung after "Host port wait strategy complete" on Windows podman #1129

@f-w

Description

@f-w

Expected Behaviour
no hung

Actual Behaviour
hung

Testcontainer Logs

...
   console.log
    2025-09-08T14:28:46.371Z testcontainers:containers [cf4f3f9ef050] 1:M 08 Sep 2025 14:28:46.254 * Module 'ReJSON' loaded from /usr/local/lib/redis/modules//rejson.so

      at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)

  console.log
    2025-09-08T14:28:46.372Z testcontainers:containers [cf4f3f9ef050] 1:M 08 Sep 2025 14:28:46.254 * <search> Acquired RedisJSON_V5 API

      at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)

  console.log
    2025-09-08T14:28:46.373Z testcontainers:containers [cf4f3f9ef050] 1:M 08 Sep 2025 14:28:46.254 * Server initialized

      at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)

  console.log
    2025-09-08T14:28:46.374Z testcontainers:containers [cf4f3f9ef050] 1:M 08 Sep 2025 14:28:46.254 * Ready to accept connections tcp

      at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)

  console.log
    2025-09-08T14:28:46.378Z testcontainers [DEBUG] [cf4f3f9ef050] Host port 46219 ready

      at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)
          at async Promise.all (index 0)
          at async Promise.all (index 3)
          at async Promise.all (index 26)

  console.log
    2025-09-08T14:28:46.379Z testcontainers [DEBUG] [cf4f3f9ef050] Host port wait strategy complete

      at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)
          at async Promise.all (index 0)
          at async Promise.all (index 3)
          at async Promise.all (index 26)

Steps to Reproduce

  1. In this environment (see below)
  2. With this config
      "env": {
        "TESTCONTAINERS_RYUK_DISABLED": "true",
        "DEBUG": "testcontainers*"
      }
    
    and code
            const { GenericContainer } = await import('testcontainers');
            const redisContainer = await new GenericContainer('redis')
              .withExposedPorts(6379)
              .start();
            host = redisContainer.getHost();
            port = redisContainer.getMappedPort(6379);
            shutdownService.addRedisServer(redisContainer);
    
  3. hung at 2nd statement

Environment Information

  • Operating System: Win 11
  • Docker Version: podman 5.6.1
  • Node version: v22.2.0
  • Testcontainers version: 11.5.1

Other info

  • The code was working with Docker Desktop
  • Only podman, not podman desktop is installed

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