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.
On Windows, if docker is set to 'Windows container', and we try to run a Linux box, we get:
Can the reason be identified and user is instead (or additionally) alerted with:
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.