RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1095901 - Docker includes escape/control sequences in 'events' output
Summary: Docker includes escape/control sequences in 'events' output
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-08 19:14 UTC by Chris Evich
Modified: 2019-03-06 02:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-17 19:13:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Evich 2014-05-08 19:14:17 UTC
Description of problem:
See summary

Version-Release number of selected component (if applicable):
docker-0.10.0-7.el7.x86_64

How reproducible:
Easy

Steps to Reproduce:
1. [terminal 1]# docker events | tee /tmp/events.out
2. [terminal 2]# docker run fedora:20 bash -c '/bin/true'
3. <terminal 1  ctrl-c>
4. [terminal 1]# hexdump -C /tmp/events.out

Actual results:
[root@docker ~]# docker events | tee /tmp/events.out
[2014-05-08 15:03:48 -0400 EDT] 86dd22d99613f55bdaa1ed28c38d5b4724caabefa35f4205b28273a9898c826c: (from fedora:20) create
[2014-05-08 15:03:48 -0400 EDT] 86dd22d99613f55bdaa1ed28c38d5b4724caabefa35f4205b28273a9898c826c: (from fedora:20) start
[2014-05-08 15:03:50 -0400 EDT] 86dd22d99613f55bdaa1ed28c38d5b4724caabefa35f4205b28273a9898c826c: (from fedora:20) die
^C
[root@docker ~]# hexdump -C /tmp/events.out
00000000  1b 5b 32 4b 0d 5b 32 30  31 34 2d 30 35 2d 30 38  |.[2K.[2014-05-08|
00000010  20 31 35 3a 30 33 3a 34  38 20 2d 30 34 30 30 20  | 15:03:48 -0400 |
00000020  45 44 54 5d 20 38 36 64  64 32 32 64 39 39 36 31  |EDT] 86dd22d9961|
00000030  33 66 35 35 62 64 61 61  31 65 64 32 38 63 33 38  |3f55bdaa1ed28c38|
00000040  64 35 62 34 37 32 34 63  61 61 62 65 66 61 33 35  |d5b4724caabefa35|
00000050  66 34 32 30 35 62 32 38  32 37 33 61 39 38 39 38  |f4205b28273a9898|
00000060  63 38 32 36 63 3a 20 28  66 72 6f 6d 20 66 65 64  |c826c: (from fed|
00000070  6f 72 61 3a 32 30 29 20  63 72 65 61 74 65 0d 0a  |ora:20) create..|
00000080  1b 5b 30 42 1b 5b 32 4b  0d 5b 32 30 31 34 2d 30  |.[0B.[2K.[2014-0|
00000090  35 2d 30 38 20 31 35 3a  30 33 3a 34 38 20 2d 30  |5-08 15:03:48 -0|
000000a0  34 30 30 20 45 44 54 5d  20 38 36 64 64 32 32 64  |400 EDT] 86dd22d|
000000b0  39 39 36 31 33 66 35 35  62 64 61 61 31 65 64 32  |99613f55bdaa1ed2|
000000c0  38 63 33 38 64 35 62 34  37 32 34 63 61 61 62 65  |8c38d5b4724caabe|
000000d0  66 61 33 35 66 34 32 30  35 62 32 38 32 37 33 61  |fa35f4205b28273a|
000000e0  39 38 39 38 63 38 32 36  63 3a 20 28 66 72 6f 6d  |9898c826c: (from|
000000f0  20 66 65 64 6f 72 61 3a  32 30 29 20 73 74 61 72  | fedora:20) star|
00000100  74 0d 0a 1b 5b 30 42 1b  5b 32 4b 0d 5b 32 30 31  |t...[0B.[2K.[201|
00000110  34 2d 30 35 2d 30 38 20  31 35 3a 30 33 3a 35 30  |4-05-08 15:03:50|
00000120  20 2d 30 34 30 30 20 45  44 54 5d 20 38 36 64 64  | -0400 EDT] 86dd|
00000130  32 32 64 39 39 36 31 33  66 35 35 62 64 61 61 31  |22d99613f55bdaa1|
00000140  65 64 32 38 63 33 38 64  35 62 34 37 32 34 63 61  |ed28c38d5b4724ca|
00000150  61 62 65 66 61 33 35 66  34 32 30 35 62 32 38 32  |abefa35f4205b282|
00000160  37 33 61 39 38 39 38 63  38 32 36 63 3a 20 28 66  |73a9898c826c: (f|
00000170  72 6f 6d 20 66 65 64 6f  72 61 3a 32 30 29 20 64  |rom fedora:20) d|
00000180  69 65 0d 0a 1b 5b 30 42                           |ie...[0B|
00000188


Expected results:
[root@docker ~]# docker events | tee /tmp/events.out
2014/05/08 15:03:15 Get http:///var/run/docker.sock/events: dial unix /var/run/docker.sock: no such file or directory
[root@docker ~]# systemctl restart docker
[root@docker ~]# docker events | tee /tmp/events.out
[2014-05-08 15:03:48 -0400 EDT] 86dd22d99613f55bdaa1ed28c38d5b4724caabefa35f4205b28273a9898c826c: (from fedora:20) create
[2014-05-08 15:03:48 -0400 EDT] 86dd22d99613f55bdaa1ed28c38d5b4724caabefa35f4205b28273a9898c826c: (from fedora:20) start
[2014-05-08 15:03:50 -0400 EDT] 86dd22d99613f55bdaa1ed28c38d5b4724caabefa35f4205b28273a9898c826c: (from fedora:20) die
^C
[root@docker ~]# hexdump -C /tmp/events.out
00000000  5b 32 30 31 34 2d 30 35  2d 30 38 20 31 35 3a 30  |[2014-05-08 15:0|
00000010  33 3a 34 38 20 2d 30 34  30 30 20 45 44 54 5d 20  |3:48 -0400 EDT] |
00000020  38 36 64 64 32 32 64 39  39 36 31 33 66 35 35 62  |86dd22d99613f55b|
00000030  64 61 61 31 65 64 32 38  63 33 38 64 35 62 34 37  |daa1ed28c38d5b47|
00000040  32 34 63 61 61 62 65 66  61 33 35 66 34 32 30 35  |24caabefa35f4205|
00000050  62 32 38 32 37 33 61 39  38 39 38 63 38 32 36 63  |b28273a9898c826c|
00000060  3a 20 28 66 72 6f 6d 20  66 65 64 6f 72 61 3a 32  |: (from fedora:2|
00000070  30 29 20 63 72 65 61 74  65 0d 0a 5b 32 30 31 34  |0) create..[2014|
00000080  2d 30 35 2d 30 38 20 31  35 3a 30 33 3a 34 38 20  |-05-08 15:03:48 |
00000090  2d 30 34 30 30 20 45 44  54 5d 20 38 36 64 64 32  |-0400 EDT] 86dd2|
000000a0  32 64 39 39 36 31 33 66  35 35 62 64 61 61 31 65  |2d99613f55bdaa1e|
000000b0  64 32 38 63 33 38 64 35  62 34 37 32 34 63 61 61  |d28c38d5b4724caa|
000000c0  62 65 66 61 33 35 66 34  32 30 35 62 32 38 32 37  |befa35f4205b2827|
000000d0  33 61 39 38 39 38 63 38  32 36 63 3a 20 28 66 72  |3a9898c826c: (fr|
000000e0  6f 6d 20 66 65 64 6f 72  61 3a 32 30 29 20 73 74  |om fedora:20) st|
000000f0  61 72 74 0d 0a 5b 32 30  31 34 2d 30 35 2d 30 38  |art..[2014-05-08|
00000100  20 31 35 3a 30 33 3a 35  30 20 2d 30 34 30 30 20  | 15:03:50 -0400 |
00000110  45 44 54 5d 20 38 36 64  64 32 32 64 39 39 36 31  |EDT] 86dd22d9961|
00000120  33 66 35 35 62 64 61 61  31 65 64 32 38 63 33 38  |3f55bdaa1ed28c38|
00000130  64 35 62 34 37 32 34 63  61 61 62 65 66 61 33 35  |d5b4724caabefa35|
00000140  66 34 32 30 35 62 32 38  32 37 33 61 39 38 39 38  |f4205b28273a9898|
00000150  63 38 32 36 63 3a 20 28  66 72 6f 6d 20 66 65 64  |c826c: (from fed|
00000160  6f 72 61 3a 32 30 29 20  64 69 65 0d 0a           |ora:20) die..|
0000016d

Additional info:
Found on RHEL 7 RC using Autotest 0.16.0-master-63-g35e93, Docker test 0.7.1, subtest "docker_cli/events".

Comment 2 Daniel Walsh 2014-05-21 21:20:22 UTC
https://github.com/dotcloud/docker/pull/5979 

Fixes this in git.

Hopefully will get merged quickly

Comment 3 Chris Evich 2014-06-17 14:03:30 UTC
Confirmed fixed in docker-0.11.1-19.el7.x86_64 (or a bit earlier).


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