|
|
|
|
|
by CoolCold
1481 days ago
|
|
Under Windows, WSL/WSL2 is new (5 years old) big thing which is integrated with Docker Desktop as well. I've tried to run `dock` under WSL2 and install works fine, container creation works fine, but connecting through SSH fails - due the fact that Docker is really running in different VM and is not directly accessible (ssh just times out).
Looks like, adding some small modifications of way of exposing ssh/connecting there should allow it as well. On side note - bash scripting is very nicely done! But running through `shellcheck` gives some hints on safer handling, i.e. echo "StrictHostKeyChecking no" >> ~/.ssh/dock_config_$ssh_suffix
^---------^ SC2086: Double quote to prevent globbing and word splitting.
|
|
Also, thank you for trying it out and reporting it works even on Windows, pleasantly surprised.