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

Windows support #31

Open
aistis- opened this issue Aug 29, 2016 · 8 comments
Open

Windows support #31

aistis- opened this issue Aug 29, 2016 · 8 comments

Comments

@aistis-
Copy link

aistis- commented Aug 29, 2016

Hey guys, does it work on windows? Cannot test it at the moment.

@FDiskas
Copy link

FDiskas commented Aug 29, 2016

You can run this on Windows to

docker run -d --name docker-hostmanager --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v C:/Windows/System32/drivers/etc/hosts:/hosts iamluc/docker-hostmanager

Or mount the volume to your hosts location.
But you still will get the error:
Invalid directory. Volume directories must be under your Users directory
So its probably imposible in easy way :)

@iamluc
Copy link
Owner

iamluc commented Aug 30, 2016

You could try to use the phar directly instead of the docker image, like for mac.
See https://github.com/iamluc/docker-hostmanager#mac-os

@FDiskas
Copy link

FDiskas commented Jan 16, 2017

🏂 Probably posible solution

docker run -d --name docker-hostmanager --restart=always -v "C:\Windows\System32\drivers\etc\hosts:/etc/hosts" iamluc/docker-hostmanager

But still there is no permissions to access hosts file

docker: Error response from daemon: chown /C/Windows/System32/drivers/etc/hosts: permission denied.

So I changed the permission added allow to write (not secure) so now its works on windows to.

@FDiskas
Copy link

FDiskas commented Jan 28, 2017

You should update the readme

@iamluc
Copy link
Owner

iamluc commented Jan 30, 2017

Thanks @FDiskas . Could you open a Pull request ?

@FDiskas
Copy link

FDiskas commented Jan 30, 2017

🆎 More tests needed.

@bernhardberger
Copy link

@FDiskas how is this supposed to work without mounting the docker sock?

@FDiskas
Copy link

FDiskas commented Sep 30, 2017

@bernhardberger can't remember :)

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

No branches or pull requests

4 participants