-
Notifications
You must be signed in to change notification settings - Fork 122
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
Shell in container incrementally indents new lines #1672
Comments
Annoying bug for sure. If you type |
Can confirm this happens after updating to latest edge |
Same here. It would be nice to have page with links to specific version of edge, fe docker for-mac github releases page. I found only two links in store with latest release for both of version. Locally downloaded DMG from the previous week saves me. |
Same issue here with the Docker edge |
+1 |
+1 and thanks @nuzz saved my sanity :) |
+1 |
Typing reset didn't fix it for me, sadly. |
+1, reset doesn't fix for me, either. |
reset works for me, both Docker for Mac and Docker for Windows |
|
The |
Oh.... I didn't know that. Testing that out now. |
Yep. That works. Thanks! |
+1 |
Looks like this is fixed by moby/moby#33502. There is some way to get back the old version, if you upgraded within Docker.app: #1120 (comment) |
Hey guys, I'm running
you should now run
First option is better, as it doesn't clear your input :) P.S. There is no issue if you don't use the interactive flag. thanks @narqo for mentioning it. |
@egikyan you might also drop |
+1 The reset command works for me. Thanks @nuzz |
Created an issue docker/compose#4910 |
Just in case this is hitting others too: I was still seeing this while using the docker daemon from 17.06.0-rc2-ce-mac14, until I realised my docker client was an earlier version:
After that, I no longer see the issue. |
@mmickan Mixing “brewed Docker” and “Docker for Mac” is never a good idea 😄 If you really miss Homebrew, try |
The reality is that I'm still seeing this problem consistently in Version 17.06.0-rc2-ce-mac14 (18280), at first I hoped it was resolved (and thought I saw it work a time or two), but it's definitely not resolved.
|
@rfay are you running docker-compose? |
Yes, starting containers with docker-compose, but using docker to access them. I thought that docker/compose#4910 was about people using |
@rfay That may be due to a different cause; I suggest to wait for next RC which may or may not fix your issue (possibly because Docker and Docker Compose are tangled with each other somehow). |
Looks like finally fixed in the latest edge version:
|
@mkubenka yes this is no longer happening in this new update. |
Confirmed: |
I think this can be closed unless there is any further report. |
not fixed for me in edge version |
No workarounds mentioned work for me. Requesting reopening... |
@rulatir it is still working for me. Maybe try reinstalling because it does not sound like a widespread issue anymore. Hope that helps :) |
It's wierd, I did not make any changes and there were no updates, but now it's working as it should on 17.12.0-ce-mac49 (21995). |
broken for me in 18.02.0-ce when pasting text from text-wrangler to vi session |
@thehesiod What if you simply hit returns in Bash? |
@FranklinYu not sure what you mean? my scenario: copy multiline text from text-wrangler, run |
@thehesiod How about this scenario: run interactive |
that works fine, it's just pasting that's the issue |
@thehesiod what you described might be a thing with VI and copying and pasting. Try To isolate whether the issue is VI or docker for Mac, try using just the shell and not VI. Good luck :) |
@zhao-lin-li perhaps, actually I just noticed that if I run |
@thehesiod Maybe your |
@andradei I'm using |
@thehesiod It does behave like that on my mac, though. Regardless, this is very likely to be a |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Normal formatting of terminal when using shell in any container.
Actual behavior
PS1/new lines appear to be incrementally indented.
Information
Steps to reproduce the behavior
docker pull alpine
docker run -it alpine /bin/sh
See output like below:
Discovered after updating to new edge release. Not alpine/sh specific. Also replicated on Debian derived images using bash. Also replicated on separate machine. Replicated on both Terminal and iTerm2.
The text was updated successfully, but these errors were encountered: