vmware / powerclicore

PowerCLI Core Dockerfile
Apache License 2.0
97 stars 48 forks source link

Container echos all typed commands twice #56

Closed kkuphal closed 3 years ago

kkuphal commented 3 years ago

When running the vmware/powerclicore container on VMware Integrated Containers, all typed keystrokes are echoed back causing confusion on the commandline. In the below example, I typed only "help" but "hhehelhelp" is echoed at the prompt

PowerShell 7.1.1
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

PS /root> hhehelhelp
dmilov commented 3 years ago

Thanks for reporting this one.
I don't know the specifics of the VMware Integrated Containers but seems like the terminal is not set to linux.

What is the GUI for accessing the container shell?

kkuphal commented 3 years ago

Thanks for reporting this one. I don't know the specifics of the VMware Integrated Containers but seems like the terminal is not set to linux.

What is the GUI for accessing the container shell?

Windows 10 1909 Docker CE v18.06.0-ce-win72 (19098) Running docker commands in a windows command prompt to attach to the container

dmilov commented 3 years ago

Can you check what's the value of $env:TERM in this container?

kkuphal commented 3 years ago

docker run --rm -it vmware/powerclicore PowerShell 7.1.1 Copyright (c) Microsoft Corporation.

https://aka.ms/powershell Type 'help' to get help.

PS /root> $$e$en$env> $env:> $env:T$env:TE$env:TER$env:TERM xterm PS /root>

dmilov commented 3 years ago

Please try the following

docker run --rm -it --env TERM=linux vmware/powerclicore

kkuphal commented 3 years ago

That seems to work great. Thanks!