Skip to content

Containers are failing to start on windows 2025 (GitHub runner) #1093

@ggrossetie

Description

@ggrossetie

Expected Behaviour

Container should start on windows-2025 (or windows-latest) GitHub runner.

Actual Behaviour

An error is thrown: invalid volume specification: '//var/run/docker.sock:/var/run/docker.sock:rw'

Testcontainer Logs

     Error: (HTTP code 500) server error - invalid volume specification: '//var/run/docker.sock:/var/run/docker.sock:rw' 
      at C:\a\asciidoctor-kroki\asciidoctor-kroki\node_modules\docker-modem\lib\modem.js:383:17
      at getCause (node_modules\docker-modem\lib\modem.js:418:7)
      at Modem.buildPayload (node_modules\docker-modem\lib\modem.js:379:5)
      at IncomingMessage.<anonymous> (node_modules\docker-modem\lib\modem.js:347:16)
      at IncomingMessage.emit (node:events:519:35)
      at endReadableNT (node:internal/streams/readable:1701:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

Steps to Reproduce
You can clone this repository https://github.com/ggrossetie/testcontainers-node-windows and run the GitHub Actions.
As you can see, it's running fine on Linux but it fails on Windows: https://github.com/ggrossetie/testcontainers-node-windows/actions/runs/16575193079/job/46877612649

Environment Information

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