Currently, I am using Docker Desktop for Windows to run Ubuntu images. I am using WSL2 as Linux subsystem. Now, I want to do some ssh actions from the docker container. There are multiple containers and I want to use same ssh keys for all those containers. this is only for development activities and may not be suited for production due to security reasons. I want to store my ssh keys on Windows host and access them from the container. Is this possible with Docker and WSL2? Can I do it within the dockerfile? I have a basic dockerfile which creates an ubuntu image. If anyone has done this, please let me know.
Your help will be much appreciated.
Thanks in advance.