Connect to Container shell using SSH instead of web UI

How can I connect to an app’s shell over SSH instead of using the web UI shell which doesn’t seem to support previous commands using the up arrow, or moving the cursor using the left and right arrows.

I see from the API it uses JSON-RPC and this can be called via midclt from an SSH session. I can get the shell ID using midclt call app.container_console_choices or from the Web UI, but I have no idea how to connect to it or invoke command on it. The API documentation is very bare.

TrueNAS 25.10.0.1 Goldeye

I’m at dinner right now but I can write up the steps how I did it when I’m back home

Edit: by your title I thought you meant lxcs and not a docker container…

Generally I’d SSH into the box and then docker exec -it $containername bash because unless I’m calling things from the API I’d be in the general shell anyways

Thanks. That’s what I wanted.

1 Like