ESC does not work well in Ubuntu environment created by Docker and Vim cannot be removed

Asked 1 years ago, Updated 1 years ago, 75 views

I'd like to use the vim command in Ubuntu created in Docker.
If you press esc, you will only see ^[ and cannot switch modes.
ESC will show ^[

The environment is as follows:
hosts:macOS
containers:Ubuntu 14.04
Installing Vim: apt-get install-y sudo vim

Please let me know if anyone knows anything.
Thank you for your cooperation.

ubuntu vim docker

2022-09-30 19:10

1 Answers

The reason was that the -t option was not turned on when the Docker container was running.
docker run-it ubuntu_test
It was okay like this


2022-09-30 19:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.