Bug 1260111 - Docker is appending 'carriage return' char. at the end of each line if --tty is set
Summary: Docker is appending 'carriage return' char. at the end of each line if --tty ...
Keywords:
Status: CLOSED DUPLICATE of bug 1260113
Alias: None
Product: Fedora
Classification: Fedora
Component: docker
Version: 22
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: smahajan@redhat.com
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1260113
TreeView+ depends on / blocked
 
Reported: 2015-09-04 12:30 UTC by Peter Hostačný
Modified: 2016-08-01 01:06 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1260113 (view as bug list)
Environment:
Last Closed: 2015-10-01 14:55:23 UTC


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.