jeroenpeeters / docker-ssh

SSH Server for Docker containers ~ Because every container should be accessible
GNU General Public License v2.0
641 stars 88 forks source link

Does not work on Docker for Windows #20

Closed h-e-n-r-y closed 7 years ago

h-e-n-r-y commented 7 years ago

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

jeroenpeeters commented 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.

thaeli commented 7 years ago

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
h-e-n-r-y commented 7 years ago

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_ .

h-e-n-r-y commented 7 years ago

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_ .