xxh / xxh

🚀 Bring your favorite shell wherever you go through the ssh. Xonsh shell, fish, zsh, osquery and so on.
BSD 2-Clause "Simplified" License
5.16k stars 108 forks source link

Docker exec and kubectl exec support #181

Open funkyfisch opened 2 months ago

funkyfisch commented 2 months ago

I was thinking how useful this would be if it existed for attaching one's self to a docker container (using the available shell there) and bringing along aliases, commands, env config and potentially programs - has anyone thought about this? And how could this potentially be done, if at all possible?

For community: ⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

anki-code commented 2 months ago

Hey @funkyfisch ! Yah, I had this thought too. You can find a few mentions ssh, rsync and scp calls in the code. By replacing it to docker exec, docker cp you can achieve your goal. Probably it will be cool to have abstract class to implement ssh, docker, etc support. PR is welcome!