Skip to content

Can wrong OS family error be identified to improve the error message? #36773

@ghost

Description

On Windows, if docker is set to 'Windows container', and we try to run a Linux box, we get:

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: open \\.\pipe\docker_engine_windows
: The system cannot find the file specified.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.

Can the reason be identified and user is instead (or additionally) alerted with:

Please right-click docker icon in system tray and click 'Switch to Linux container...' in context menu

This sounds very GUI-centric, right? So perhaps we can introduce a command like docker switch <os-family>, so the direction for user works for both GUI and headless (win server core) scenarios.

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