docker-machine ssh shows raw escape code buffer in cmd #499

Closed
opened 2026-01-30 21:53:47 +00:00 by claunia · 3 comments
Owner

Originally created by @Biswa96 on GitHub (Dec 30, 2018).

*Windows build number: Version 10.0.18305.1000]

  • Command used: docker-machine.exe ssh docker-host which uses Go-lang implementation of ssh in docker-machine.exe.

  • What's wrong / what should be happening instead:

    • In CMD:

cmd-docker-ssh

  • In WSL:

wsl-docker-ssh

I don't know if this is by-design or not. Or may be I should use terminal or not. If you need more information just ask.

Originally created by @Biswa96 on GitHub (Dec 30, 2018). *Windows build number: Version 10.0.18305.1000] * Command used: `docker-machine.exe ssh docker-host` which uses Go-lang implementation of `ssh` in `docker-machine.exe`. * What's wrong / what should be happening instead: - In CMD: ![cmd-docker-ssh](https://user-images.githubusercontent.com/31443074/50550013-c5cd5100-0c8d-11e9-8463-cb1923be5940.PNG) - In WSL: ![wsl-docker-ssh](https://user-images.githubusercontent.com/31443074/50550015-ce258c00-0c8d-11e9-8ef1-d68a4a0c6436.PNG) I don't know if this is _by-design_ or not. Or may be I should use terminal or not. If you need more information just ask.
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 30, 2018):

It looks like docker-machine is not setting ENABLE_VIRTUAL_TERMINAL_PROCESSING on the console output handle. That'd be a good issue to raise on either docker-machine or the Go library they're using for terminal output.

WSL ssh works, of course, because WSL sets ENABLE_VIRTUAL_TERMINAL_PROCESSING.

@DHowett-MSFT commented on GitHub (Dec 30, 2018): It looks like `docker-machine` is not setting `ENABLE_VIRTUAL_TERMINAL_PROCESSING` on the console output handle. That'd be a good issue to raise on either docker-machine or the Go library they're using for terminal output. WSL ssh works, of course, because WSL sets `ENABLE_VIRTUAL_TERMINAL_PROCESSING`.
Author
Owner

@Biswa96 commented on GitHub (Dec 31, 2018):

@DHowett-MSFT Found another question. Is this in same category of mine?

@Biswa96 commented on GitHub (Dec 31, 2018): @DHowett-MSFT Found another [question](https://superuser.com/q/1386570/726810). Is this in same category of mine?
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 31, 2018):

That one doesn't seem related, actually. It is lacking some reasonably critical info, mostly surrounding which versions of which tools are in use, whether the person is using Linux docker against a Windows host, whether this is Python for Windows in docker or Python for Linux, and so on.

@DHowett-MSFT commented on GitHub (Dec 31, 2018): That one doesn't seem related, actually. It _is_ lacking some reasonably critical info, mostly surrounding which versions of which tools are in use, whether the person is using Linux docker against a Windows host, whether this is Python for Windows in docker or Python for Linux, and so on.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#499