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

Broken terminal output when running with -it #1671

Closed
johanneswuerbach opened this issue Jun 1, 2017 · 9 comments
Closed

Broken terminal output when running with -it #1671

johanneswuerbach opened this issue Jun 1, 2017 · 9 comments

Comments

@johanneswuerbach
Copy link

Expected behavior

$ docker run -it ubuntu:14.04 bash -c 'printf "hello\nworld\n"'
hello
world

Actual behavior

$ docker run -it ubuntu:14.04 bash -c 'printf "hello\nworld\n"'
hello
     world

Information

Docker for Mac: version: 17.06.0-rc1-ce-mac13 (4cdec4294a50b2233146b09469b49937dabdebdd)
macOS: version 10.12.5 (build: 16F73)
logs: /tmp/0B1F320E-5325-4089-8D45-65FCD0492C3B/20170601-142028.tar.gz
[OK]     db.git
[OK]     vmnetd
[OK]     dns
[OK]     driver.amd64-linux
[OK]     virtualization VT-X
[OK]     app
[OK]     moby
[OK]     system
[OK]     moby-syslog
[OK]     db
[OK]     env
[OK]     virtualization kern.hv_support
[OK]     slirp
[OK]     osxfs
[OK]     moby-console
[OK]     logs
[OK]     docker-cli
[OK]     menubar
[OK]     disk
@haroon-sheikh
Copy link

@johanneswuerbach is that #1672 what you're seeing?

@johanneswuerbach
Copy link
Author

Seems related, looks like the line break isn't reseting the cursor position to 0, but just moves it to the next line.

@g0t4
Copy link

g0t4 commented Jun 2, 2017

I'm having this issue with both Docker for Mac and Docker for Windows after upgrading edge:

Version 17.06.0-rc1-ce-mac13 (18169)
and
Version 17.06.0-rc1-ce-win13 (12433)

@codercotton
Copy link

Typing reset fixes this once inside the container.

@kevinsimper
Copy link

@codercotton temporary solution that works 👍

@alexbeletsky
Copy link

Thanks a lot, @codercotton the workaround works. I hope it's eventually fixed :)

@achimnol
Copy link

achimnol commented Jun 9, 2017

I see this is now fixed with the version 17.06.0-rc2-ce-mac14 (18280) update.

@johanneswuerbach
Copy link
Author

johanneswuerbach commented Jun 17, 2017

Seems to be really fixed in 17.06.0-rc4-ce-mac15 🎉 .

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

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.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants