srl-labs / clabernetes

containerlab, but in kubernetes!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create a shortcut cmd in the launcher to immediately get into the hosted container's shell

hellt opened this issue · comments

create the executable /usr/local/bin/sshin with the following contents

#!/bin/bash
ssh $(docker ps -a --format {{.Names}})

Then, when connected to the launcher a user might just type sshin and get into the shell.

This will also work with the kubectl:

k exec -it <pod-name> -- sshin