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

There was a problem entering the container #42707

Closed
1084077463 opened this issue Aug 4, 2021 · 2 comments
Closed

There was a problem entering the container #42707

1084077463 opened this issue Aug 4, 2021 · 2 comments

Comments

@1084077463
Copy link

docker version:20.10.6
Use the docker exec command to enter the container:
failed to resize tty, using default size
How should this problem be solved? Is it the docker version or the server?

@thaJeztah
Copy link
Member

This error comes from the docker cli; https://github.com/docker/cli/blob/a32cd16160f1b41c1c4ae7bee4dac929d1484e59/cli/command/container/tty.go#L49-L68

The cli will resize the terminal inside the VM to match the terminal Window (when starting the exec, and if your terminal window is resized). This is on a "best effort" base, because it's possible that the container is slow to respond, or other reasons. Possibly the CLI should print the actual error it encountered (but that would only be useful for debugging purposes)

If you have steps to consistently reproduce this problem, it's best to open a ticket in the CLI issue tracker instead (https://github.com/docker/cli), but when doing so, please include the information that was requested in the issue template when you open a ticket (at least the full output of docker version and docker info, but also clear reproduction steps).

Closing this because of the above, but feel free to continue the conversation.

@1084077463
Copy link
Author

I submit the question to docker cli:docker/cli#3231

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

No branches or pull requests

2 participants