I am following the dockerizing sshd article @ “https://docs.docker.com/engine/examples/running_ssh_service/”.
Coming across a small issue, that is that I want to avoid scrubbing the shell after SSHing into container.
As it states "sshd scrubs the environment before it starts the shell."
I am using a host for test and dev on my laptop and feel more comfortable in SSHing into container after setting up the basic machine. However I need files and the installed app, originally in the host, while in SSH shell.
Unfortunately when I spin up a container, I can access all files and folder through “docker attach” or “docker exec -ti” however I fail to get the same environment after SSH.
Appreciate if some one can advise a solution.
Thanks in advance.