Docker Community Forums

Share and learn in the Docker community.

Docker for Windows: image operating system "linux" cannot be used on this platform


(Prabhat21) #1

Whenever I’m pulling containers from “hub.docker.com” for eg:- “docker pull node” or"docker pull selenium/node-chrome"or “docker pull selenium/node-firefox” etc,
I always get “latest: Pulling from library/node
image operating system “linux” cannot be used on this platform” error.

Note: I have already selected “Switch to Windows Containers” present at the bottom of the window screen

Please find my docker version below and info:
PS C:\WINDOWS\system32> docker version
Client:
Version: 1.13.1
API version: 1.26
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 08:47:51 2017
OS/Arch: windows/amd64

Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.24)
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 08:47:51 2017
OS/Arch: windows/amd64
Experimental: true

INFO:
PS C:\WINDOWS\system32> docker info
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 2
Server Version: 1.13.1
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 14393 (14393.693.amd64fre.rs1_release.161220-1747)
Operating System: Windows 10 Pro
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 11.8 GiB
Name: DIN****
ID: QLUF:HIJ6:B6U3***
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: -1
Goroutines: 18
System Time: 2017-02-27T11:40:03.4791032+05:30
EventsListeners: 0
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

Any suggestion on this topic would really help.

Thanks


(Michael Friis) #2

If you want to use Windows Docker containers, then you need to pull and run Windows image variants: docker pull stefanscherer/node-windows:7.6.0-nano

https://hub.docker.com/r/stefanscherer/node-windows/


(Phila1) #3

when you have docker for windows installed on win10 if has 1 modes. windows container mode and linux container mode.
you need to right click and switch to linux containers before you pull your selenium images.


(Prabhat21) #4

Thank you for your reply!
If you see my Docker Info above, you will see that I have already selected “Windows container mode”. If you have tried pulling selenium hub or chrome image in your system and if its working, then please let me know further how you achieved it.

For me its working on Linux container mode and not Windows container mode.

May be we have to create our own Selenium container which can work on Windows mode. And I’m totally unaware of how to create Selenium image for windows.


(Prabhat21) #5

Thanks Friism!
Any reference of selenium/hub container or Chrome container which can work on “Windows mode”


(Michael Friis) #6

I don’t think it will work. Selenium runs full browsers with GUI. Windows containers don’t support GUI apps.


(Prabhat21) #7

This is a bit Shocking…!! :frowning:


(Phila1) #8

I did say “you need to right click and switch to linux containers before you pull your selenium images.”


(Abiezerm) #9

thanks, that was my problem


(Mubashirullah) #10

I get this error when I switch: “Failed to switch because your Windows version is not compatible.”

OS Name: Microsoft Windows 10 Pro
Version: 10.0.17134 Build 17134

What should I do?


(Phila1) #11

You need to apply windows updates to get a newer version installed.


(Rvprasad) #13

Is there an update to Windows 10 Pro beyond ver 1803 and build 17134.165? Cos’ I have this and switching to LCoW says my windows version is not compatible.


(Hvonb) #14

with docker for windows you can also use lcow mode:
docker pull --platform linux node


(Rvprasad) #15

I will try this. In the mean time, switching to “LCoW” on Windows pops up a message saying my windows version is not compatible. Will this “pull” fix this issue?


(Rvprasad) #16

@hvonb That did not work. Switching Hyper-V off and back on did the trick \shrug.


(Dsraidu2513) #17

It shows me same error after switching off Hyper-V

Error: Failed to switch because your Windows version is not compatible.

My operating system version is

image