Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run on Windows #164

Open
vmarkovtsev opened this issue May 12, 2018 · 6 comments
Open

Cannot run on Windows #164

vmarkovtsev opened this issue May 12, 2018 · 6 comments

Comments

@vmarkovtsev
Copy link
Contributor

<this is emulating a real report>

I run

docker run -d --privileged -p 9432:9432 --name bblfshd bblfsh/bblfshd

and see

docker: Error response from daemon: invalid --privileged: Windows does not support this feature.
@vmarkovtsev
Copy link
Contributor Author

<emulation ends here>
Windows version: Server 2016
Docker version: https://www.appveyor.com/docs/build-environment/#docker

@juanjux
Copy link
Contributor

juanjux commented May 12, 2018

Does it work without the parameter? (if so I'll update the docs).

@vmarkovtsev
Copy link
Contributor Author

Alas!

docker run -d --name bblfshd  -p 9432:9432 bblfsh/bblfshd
Unable to find image 'bblfsh/bblfshd:latest' locally
latest: Pulling from bblfsh/bblfshd
docker: image operating system "linux" cannot be used on this platform.
See 'docker run --help'.

@juanjux
Copy link
Contributor

juanjux commented May 16, 2018

WTF. So Windows can't use docker images with a Linux inside? (sorry, I'm at a loss here since I only use Windows for gaming).

@dennwc
Copy link
Member

dennwc commented May 16, 2018

Exactly. Docker images for Windows server should be built separately. The only way to run them is via any kind of virtualization.

@smola
Copy link
Member

smola commented Jun 18, 2018

Docker for Windows has the option to run Linux containers. I think it uses Microsoft's virtualization under the hood and you need to start the daemon choosing the Windows or Linux backend.

I would recommend this for Windows users at the moment. In the future, we could check if there is a viable way for us to build Windows containers for drivers by using Windows Subsystem for Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants