[SOLVED] Can't enter commands in Karaf console

I’m running the latest openhab docker image (openhab/openhab:2.4.0-snapshot-amd64-debian).
I’m trying to use the Karaf console (directly from the container via SSH or /openhab/runtime/bin/client ).
I can type and use tab completion in the console, but when I hit enter to shoot of the command nothing happens.
I can get a new line with crtl+c and dropping out of the console with crtl+d is also working, but I hitting enter does nothing at all.

I bound the Karaf console to all interfaces and opened the ssh connection directly from the docker host. This way it works just fine.

Still don’t understand why it is not working when accessing the console when attached to the container.

It will probably work if you change the terminal with:

export TERM=xterm

before connecting to the Karaf console.

1 Like

I created a PR to use the TERM value provided by Docker instead of always using TERM=dumb which should make using export TERM=xterm unnecessary if you run Docker 1.13 or newer: