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 1096286 - "docker top all" doesn't show processes when --tty=false
Summary: "docker top all" doesn't show processes when --tty=false
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1088259
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-09 15:11 UTC by Lukáš Doktor
Modified: 2019-03-06 01:12 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1088259
Environment:
Last Closed: 2014-06-03 15:04:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukáš Doktor 2014-05-09 15:11:25 UTC
+++ This bug was initially created as a clone of Bug #1088259 +++
After using the same magic required for the upstream docker 0.10 this behaves the same on RHEL docker-0.10.0-8.el7.x86_64

Description of problem:
Hi guys, when I run docker with --tty=false, the `docker top $NAME all` doesn't show any processes (just headers). When using only `docker top $NAME` it shows them...

Also the `ps` command inside container works, but `ps all` does not.

Version-Release number of selected component (if applicable):
docker-0.10.0-8.el7.x86_64
docker-io-0.9.0-3.fc20.x86_64


How reproducible:
always

Steps to Reproduce:
1. docker run -i --tty=false fedora bash
2. docker logs $NAME

Actual results:
F                   UID                 PID                 PPID                PRI                 NI                  VSZ                 RSS                 WCHAN               STAT                TTY                 TIME                COMMAND

Expected results:
F                   UID                 PID                 PPID                PRI                 NI                  VSZ                 RSS                 WCHAN               STAT                TTY                 TIME                COMMAND
1                   0                   24006               23954               20                  0                   11732               540                 -                   R                   pts/14              0:00                bash

--- Additional comment from Lukas Doktor on 2014-05-05 03:41:35 EDT ---

Can't reproduce with the upstream Docker version 0.10.0, build dc9c28f/0.10.0 top doesn't work at all (due of https://bugzilla.redhat.com/show_bug.cgi?id=1088125 )

--- Additional comment from Lukas Doktor on 2014-05-05 03:46:07 EDT ---

OK I moved it to the old cgroup location and the results are the same. So booth, fedora docker-io-0.9.0-3.fc20.x86_64 and upstream dc9c28f/0.10.0 are unable to list processes using `all` argument in non-tty mode.

Comment 2 Lukáš Doktor 2014-05-29 11:18:41 UTC
I'm sorry there is a typo in reproducer:

Steps to Reproduce:
1. docker run -i --tty=false fedora bash
2. docker top $NAME all

Comment 3 Daniel Walsh 2014-05-29 13:04:50 UTC
I got other parameters to show with the ps command

-x
and 
-Z

Worked fine.

Comment 4 Lukáš Doktor 2014-06-03 15:04:13 UTC
Hi Daniel, this issue seems to be fixed in docker-0.11.1-10.el7.x86_64. Thank you.


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