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

Wrong line breaking on newline for bash-4.2 #1681

Closed
doomhz opened this issue Jun 2, 2017 · 7 comments
Closed

Wrong line breaking on newline for bash-4.2 #1681

doomhz opened this issue Jun 2, 2017 · 7 comments

Comments

@doomhz
Copy link

doomhz commented Jun 2, 2017

Expected behavior

Proper line breaking on newlines.

Actual behavior

Wrong rendering on bash-4.2:
example

Information

Dist 4.9.30-moby, Amazon Linux AMI release 2016.03

Docker for Mac: version: 17.06.0-rc1-ce-mac13 (4cdec4294a50b2233146b09469b49937dabdebdd)
macOS: version 10.12.5 (build: 16F73)
logs: /tmp/2FAB74C8-3C32-4ED5-95D1-A0A65B9491A6/20170602-184144.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
@omata-metamax
Copy link

omata-metamax commented Jun 2, 2017

I have the same issue just after upgrade my docker version

captura de pantalla 2017-06-02 a la s 1 08 36 p m

Docker Info:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 17.06.0-ce-rc1
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 3addd840653146c90a254301d6c3a663c7fd6429
runc version: 992a5be178a62e026f4069f443c6164912adbf09
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.30-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.952GiB
Name: moby
ID: ZY2T:EU6H:BLYL:SYAK:2ZWR:ZPQM:76KR:SLFK:YPJM:QAZM:5R2P:IDEN
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 18
 Goroutines: 30
 System Time: 2017-06-02T16:58:32.950889395Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Docker Version:

Client:
 Version:      17.06.0-ce-rc1
 API version:  1.30
 Go version:   go1.8.1
 Git commit:   7f8486a
 Built:        Wed May 31 02:56:01 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.06.0-ce-rc1
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.1
 Git commit:   7f8486a
 Built:        Wed May 31 03:00:14 2017
 OS/Arch:      linux/amd64
 Experimental: true

BTW: The OS is wrongly reported by Docker.

Real OS info:

uname -a

Darwin 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64

sw_vers -productVersion

10.12.5

system_profiler SPSoftwareDataType

Software:

    System Software Overview:

      System Version: macOS 10.12.5 (16F73)
      Kernel Version: Darwin 16.6.0
      Boot Mode: Normal
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled

Other relevant info:

This is happening with bash and sh. Tested using an Alpine Linux 3.4 official docker image.

@avirshup
Copy link

avirshup commented Jun 2, 2017

Same behavior and environment here, just wanted to add that this began instantly after upgrading to 17.06.0-rc1-ce-mac13

@charles-dyfis-net
Copy link

charles-dyfis-net commented Jun 3, 2017

Running stty onlcr appears to be an effective workaround (likewise, the more general stty sane):

cduffy$ docker run -t -i bash
bash-4.4#
          bash-4.4#
                    bash-4.4# stty onlcr
                                        bash-4.4#
bash-4.4#
bash-4.4#
bash-4.4#

@mkubenka
Copy link

mkubenka commented Jun 3, 2017

Duplicate #1672

@kinghuang
Copy link

Looks like this is fixed by moby/moby#33502.

makenowjust added a commit to makenowjust/commlog that referenced this issue Jun 4, 2017
<docker/for-mac#1681>

これっぽい。

とりあえず、

```console
$ styy sane
```

すれば直る。

mobyの方で修正された(temiosの設定ミス)っぽいので次のリリースまで待つしかない。

<moby/moby#33502>
@docker-robott
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@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

8 participants