Closed dnmurray closed 6 years ago
@grayside how would I do a cd /data
after the session starts? I used PassthruCommand()
to get stdin passed through to the command so the user stays in the ssh session. I don't know how I could pass in a command to execute and then return control to the user's stdin. docker-machine ssh cd /data
just returns to the OSX prompt when I test it manually (run one command and exit the ssh session).
Well, I see how to run a command, but not how to change directory inside: https://docs.docker.com/machine/reference/ssh/
docker-machine ssh dev ls /data
Awesome, thanks Dave!
This is awesome, thanks @dnmurray