Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liner seems not work well in docker #138

Open
jievince opened this issue Oct 15, 2020 · 4 comments
Open

Liner seems not work well in docker #138

jievince opened this issue Oct 15, 2020 · 4 comments

Comments

@jievince
Copy link

In docker, all keyboard shortcuts will not work.

@peterh
Copy link
Owner

peterh commented Oct 16, 2020

There are no details here, so I can only make wild guesses.

I suspect you are running docker without a TTY, so liner goes into "dumb terminal" mode. Try docker -t.

If that doesn't resolve the issue, pretend I've never heard of docker and provide complete instructions to reproduce the issue.

@jievince
Copy link
Author

There are no details here, so I can only make wild guesses.

I suspect you are running docker without a TTY, so liner goes into "dumb terminal" mode. Try docker -t.

If that doesn't resolve the issue, pretend I've never heard of docker and provide complete instructions to reproduce the issue.

Hi peterh, Sorry for not describing my question clearly.
I use -t to start docker,
sudo docker run --rm -ti --network=host vesoft/nebula-console:v2-preview-nightly -u user -p password --addr=127.0.0.1 --port=36987
image
In this photo, I typed up/down/left/right arrow key, and then didn't work and just printed some strange characters like ^[[A^[[A^[[B^[[D^[[C^A^E^E.
Auto completer via Tab also doesn't work, and the terminal just print's a real tab(4 spaces). All other keyboard shortcuts don't' work.

@tiborvass
Copy link

@jievince Are you able to reproduce this with the example demo from https://github.com/peterh/liner#getting-started in an alpine or debian container?

@peterh
Copy link
Owner

peterh commented Nov 12, 2020

Fail to connect server, dial tcp 127.0.0.1:36987: connect: connection refused

No, seriously. I know precisely nothing about docker. I don't even know what went wrong with your command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants