Re-Use SSH Config Inside Docker Containers with WSL2
29-Oct-2020 1311
Docker and WSL have been getting more and more chummy lately. The Docker Desktop WSL2 backend integrates Docker containers with the “official” integrated Windows/Linux ecosystem (boy that still feels a little weird to write…) and gains performance perks in the process.However, I ran into some trouble recently getting SSH to work inside of a Docker container. As I’ve written about before, I like to bind-in my credentials from my host machine, rather than proliferating credentials into containers. When a container needs to SSH out to the wider world, that means binding in my .ssh directory from the host, e.g. with a docker-compose.yml:.
Re-Use SSH Config Inside Docker Containers with WSL2 #ruby #rubydeveloper #rubyonrails #Re-Use #Config #Inside #Docker #Containers #docker https://rubyonrails.ba/link/re-use-ssh-config-inside-docker-containers-with-wsl2