Bug 1260111

Summary: Docker is appending 'carriage return' char. at the end of each line if --tty is set
Product: [Fedora] Fedora Reporter: Peter Hostačný <phostacn>
Component: dockerAssignee: smahajan <smahajan>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: adimania, admiller, dkutalek, dwalsh, ichavero, jcajka, jchaloup, lsm5, miminar, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1260113 (view as bug list) Environment:
Last Closed: 2015-10-01 14:55:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1260113    

Description Peter Hostačný 2015-09-04 12:30:09 UTC
Description of problem:
Running docker run with '-t' flag is printing output with carriage return character at the end of each line. Command launched in container prints an output with normal linux-like line ending, but docker changes it after redirecting output from container to host console.


Version-Release number of selected component (if applicable):
Docker version 1.7.1.fc22, build b6416b7/1.7.1

How reproducible:
Always

Steps to Reproduce:
1. $ docker run -t --rm ubuntu:12.04 bash -c 'echo something' | od -c
2.
3.

Actual results:
0000000   s   o   m   e   t   h   i   n   g  \r  \n
0000013


Expected results:
0000000   s   o   m   e   t   h   i   n   g  \n
0000012


Additional info:
https://github.com/docker/docker/issues/8513

Comment 1 smahajan@redhat.com 2015-10-01 14:55:23 UTC
Duplicate of 1260113.
https://bugzilla.redhat.com/show_bug.cgi?id=1260113

Closing this one.

*** This bug has been marked as a duplicate of bug 1260113 ***