Skip to content

Docker error on Windows runner failed to connect to the docker API at npipe:////./pipe/docker_engine #3

Description

@lesteve

This is similar to actions/runner-images#13729

Here is a possible work-around restart Docker service in a loop until it becomes available and eventually fail if it doesn't work: https://github.com/spiffe/spire/blob/cb7073c250ef6eb568b837e4448cc58a30450067/.github/workflows/scripts/wait-for-docker-windows.ps1

The error looks like this, it has been seen in scikit-learn and scikit-learn-release:

++ docker run -it -v 'D:\a\scikit-learn-release\scikit-learn-release:C:/mnt' -d winamd64/python:3.13-windowsservercore
failed to connect to the docker API at npipe:////./pipe/docker_engine; check if the path is correct and if the daemon is running: open //./pipe/docker_engine: The system cannot find the file specified.

Last time it was seen: #2 (comment)

Recently seen in scikit-learn as well: scikit-learn/scikit-learn#34569 (comment). It occasionally happens in the scikit-learn CI as well.

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