Closed h-e-n-r-y closed 7 years ago
I actually don't know. I don't use Windows myself nor do I have the opportunity to test this. As far as I know Docker on Windows is running inside a VirtualBox Linux VM. So in theory it should be possible to make it work. Please let me know when you make any progress on this. That being said, I highly recommend to use Linux directly.
I have it working just fine from docker-compose on Docker for Windows (Docker 1.13.0) with the following config:
image: jeroenpeeters/docker-ssh
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "2222:22"
- "8022:8022"
environment:
- CONTAINER=container_name_here
- AUTH_MECHANISM=simpleAuth
- AUTH_USER=ssh
- AUTH_PASSWORD=ssh
After finding a typo I can confirm now, that it runs seemlessly unter docker for windows.
Henry
Jeroen Peeters notifications@github.com schrieb am Do., 24. Nov. 2016 um 18:57 Uhr:
I actually don't know. I don't use Windows myself nor do I have the opportunity to test this. As far as I know Docker on Windows is running inside a VirtualBox Linux VM. So in theory it should be possible to make it work. Please let me know when you make any progress on this. That being said, I highly recommend to use Linux directly.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeroenpeeters/docker-ssh/issues/20#issuecomment-262825831, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYtfNZz1xuGnW_9tqbYw8R86UXcg3Mkks5rBdAPgaJpZM4K7la_ .
Also I had to use Powershell on Windows to issue the docker run command, because git-bash does weird escaping of slashes. so the volume mounting did not work correctly.
Henry
Jeroen Peeters notifications@github.com schrieb am Do., 24. Nov. 2016 um 18:57 Uhr:
I actually don't know. I don't use Windows myself nor do I have the opportunity to test this. As far as I know Docker on Windows is running inside a VirtualBox Linux VM. So in theory it should be possible to make it work. Please let me know when you make any progress on this. That being said, I highly recommend to use Linux directly.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeroenpeeters/docker-ssh/issues/20#issuecomment-262825831, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYtfNZz1xuGnW_9tqbYw8R86UXcg3Mkks5rBdAPgaJpZM4K7la_ .
Unfortunately there ist no /var/run/docker.sock on Windows. Can I use docker-ssh on Docker for Windows without mounting this as a volume?
Henry