-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
az container exec: garbage characters inserted at shell prompt #6537
Comments
@tjprescott I don't see this behavior reproduce when we exec into a container with anything besides Azure CLI - it seems like this may be behavior from python/cli? Can you take a look at this or is there any known python output issues? |
I'm facing the exact same issue with an alpine based container: `bash
|
Mee too, tried from linux and windows 10 Pressing backspace also creates some garbage: [73;29 |
If you use bash in an alpine based container instead of /bin/sh, then there is no garbage :) (from linux) |
I am facing the same issue - a lot of garbase, hard to read the terminal |
try to perform that command after login env TERM=vt1000 /bin/bash |
I'm experiencing the same issue on an image based on Ubuntu 18.04, specifically Using the suggested |
I'm experiencing the same issue. My host is Windows 10:1903 and I'm connecting to a running container built from the mcr.microsoft.com/windows:1809 image. The console is filled with garbage, command output is almost unreadable. Update. I've noticed that the Cmder displays output without a garbage. Using it as a workaround. |
@dkkapur can you please take ownership of this issue? |
Im having the same issues when launching from ubuntu. How come this is taking YEARS to fix? @dkkapur please look into this! |
If you provide a .vimrc containing set nocompatible and use the azure container webgui Connect you can get in there to edit a file. Otherwise the "az container exec" is useless... Why has this taken YEARS to fix. @dkkapur |
I'm facing the same error. Is there a fix now? I connect to the container using |
I just reported this to my azure support account. Ticket number 119091824005018. |
Same is happening to me, container is openjdk:8-jre-alpine3.9 and I get plenty of:
Thanks! |
Same here as above on windows and osx. The entire experience with |
Same problem.
However, I'm not sure how to switch cursor position reporting off yet, is it Azure issue or alpine issue. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkkapur. |
container |
Describe the bug
When exec'ing a shell in an Alpine-based container running in Azure Container Instances, garbage characters are inserted on key press. In the example output below, the
ls
command is attempted, but[6;5R
was inserted when the "l" key was pressed, and the command fails:To Reproduce
Start Alpine container in ACI:
$ az container create -g rg604 -n alpine-test-02 --image alpine --command-line "tail -f /dev/null"
Use
az container exec
to spawn and attach to theash
shell in the container:$ az container exec -g rg604 -n alpine-test-02 --exec-command "/bin/ash"
Once inside the container, execute the
ls
command to list directory contents:Note the characters
[6;5R
were inserted when the "l" key was pressed, causing thels
command to fail.This above example output was from Bash on Ubuntu 18.04, but this behavior also occurs in the Cloud Shell:
Expected behavior
When exec'ed into a container instance, I should be able to enter commands in the terminal without "garbage" characters being inserted on keypress.
Environment summary
az
on Cloud ShellAdditional context
Exec'ing into a locally run Alpine container does not exhibit this behavior:
The text was updated successfully, but these errors were encountered: