• 6.5.1rc3 docker stats doesn't show docker name


    DZMM
    • Closed

    I'm trying to keep tabs on high memory usage. 'Docker Stats' used to show docker names, now it shows docker ids:

     

    CONTAINER           CPU %               MEM USAGE / LIMIT    MEM %               NET I/O             BLOCK I/O           PIDS
    34631b3e25b9        0.00%               18.28MiB / 62.9GiB   0.03%               4.26MB / 3.34kB     66MB / 0B           3
    c6b63f7b52ce        80.84%              976.8MiB / 62.9GiB   1.52%               828MB / 27MB        2.63GB / 4.77GB     18
    63d547487105        37.16%              1.551GiB / 62.9GiB   2.47%               23.2GB / 3.03GB     1.3GB / 8.27GB      12
    6127556abf1b        0.00%               69.54MiB / 62.9GiB   0.11%               4.62MB / 8.57MB     180MB / 3.18MB      5
    c6efa7a37350        0.10%               135.7MiB / 62.9GiB   0.21%               239MB / 145MB       2.16GB / 70.4GB     152
    6dd301bd9ee7        0.01%               175.2MiB / 62.9GiB   0.27%               62.5MB / 198MB      1.21GB / 38.7MB     10
    aff086524f32        0.02%               60.83MiB / 62.9GiB   0.09%               783kB / 0B          132MB / 55.2MB      6
    d468ca5cb713        0.48%               653MiB / 62.9GiB     1.01%               118MB / 69.8MB      7.78GB / 142GB      906
    5cf2b9c9ecc7        1.34%               786.3MiB / 62.9GiB   1.22%               259MB / 20.4GB      1.07GB / 139kB      61
    d29bfd86ea47        0.16%               73.21MiB / 62.9GiB   0.11%               15.2MB / 8.3MB      318MB / 139kB       40
    0feee913c5ad        44.30%              883.5MiB / 62.9GiB   1.37%               697MB / 488MB       3.38GB / 5.52GB     18
    1c5a60db10bb        91.96%              1.762GiB / 62.9GiB   2.80%               1.01GB / 984MB      3.95GB / 11GB       19
    0c6ef0024c02        1.14%               462.3MiB / 62.9GiB   0.72%               293MB / 553MB       8.4GB / 117GB       86
    5488c9bd3e11        0.01%               1.754GiB / 62.9GiB   2.79%               944MB / 58.6MB      4.27GB / 18.6GB     104
    f649b5859ef2        96.52%              369.3MiB / 62.9GiB   0.57%               134GB / 18GB        1.02GB / 139kB      51
    15f90bd9177a        0.00%               49.86MiB / 62.9GiB   0.08%               601MB / 357MB       4.05GB / 139kB      16
    a8fb9f1c0bcf        4.06%               2.838GiB / 62.9GiB   4.51%               7.52MB / 77.5MB     400MB / 0B          173
    deaf475f9a34        0.06%               483.4MiB / 62.9GiB   0.75%               582MB / 9.5GB       2.25GB / 16.7GB     54
    5d1dc53aa6bb        0.08%               103.4MiB / 62.9GiB   0.16%               22.9MB / 5.23MB     1.1GB / 840MB       16
    e697d2f2fb39        0.01%               41.5MiB / 62.9GiB    0.06%               863kB / 0B          163MB / 139kB       4
    f1cea0b81313        0.11%               46.42MiB / 62.9GiB   0.07%               14GB / 14.4GB       1.31GB / 17.1MB     33
    8e1f30caf981        0.05%               349.3MiB / 62.9GiB   0.54%               862kB / 0B          1.85GB / 0B         16
    29e235fbbf9d        0.00%               79.63MiB / 62.9GiB   0.12%               13MB / 5.42MB       1.71GB / 0B         21
    2a3abf89c6cd        0.78%               592.1MiB / 62.9GiB   0.92%               8.27MB / 5.37kB     2.98GB / 565kB      106
    25b3f7933fa2        0.04%               2.691MiB / 62.9GiB   0.00%               12.1MB / 3.45MB     129MB / 0B          1
    a285c7517b73        0.00%               8.508MiB / 62.9GiB   0.01%               863kB / 0B          48.9MB / 0B         6
    13228cb36c20        3.82%               89.28MiB / 62.9GiB   0.14%               618B / 0B           1.94GB / 0B         33

     




    User Feedback

    Recommended Comments

    This is the way docker version 12.09.1 displays stat information. A newer docker version is planned after more testing is done, scheduled for the moment for 6.6.

     

    Run the following:

    docker stats $(docker ps --format='{{.Names}}')
    CONTAINER           CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
    cAdvisor            4.49%               62.41MiB / 125.9GiB   0.05%               936B / 0B           43.9MB / 0B         44
    Netdata             1.82%               117.4MiB / 125.9GiB   0.09%               3.69kB / 0B         99.6MB / 0B         22
    Emby                0.00%               72.8MiB / 125.9GiB    0.06%               613kB / 1.97MB      162MB / 19.3MB      16
    Heimdall            0.00%               23.98MiB / 125.9GiB   0.02%               3.99kB / 3.35kB     3.11MB / 139kB      14
    Tautulli            0.15%               75.05MiB / 125.9GiB   0.06%               0B / 0B             44.6MB / 139kB      20
    HandBrake           0.24%               282.4MiB / 125.9GiB   0.22%               3.69kB / 0B         270MB / 279kB       70
    Unifi               0.76%               658.8MiB / 125.9GiB   0.51%               9.41MB / 925kB      363MB / 95.5MB      909
    Plex                0.11%               185.1MiB / 125.9GiB   0.14%               2.49MB / 551kB      151MB / 1.09MB      48
    Nginx               0.02%               36.5MiB / 125.9GiB    0.03%               321kB / 0B          44.6MB / 139kB      25
    Pi-hole             0.03%               43.48MiB / 125.9GiB   0.03%               2.72MB / 599kB      104MB / 86MB        22
    Tonido              0.03%               21.11MiB / 125.9GiB   0.02%               380kB / 1.85MB      55.7MB / 2.92MB     28

    Or, and select which columns to display (example below has all columns)

     docker stats --format='table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}\t{{.PIDs}}'

     

    Edited by bonienl
    • Upvote 1
    Link to comment
    4 hours ago, bonienl said:

    This is the way docker version 12.09.1 displays stat information. A newer docker version is planned after more testing is done, scheduled for the moment for 6.6.

     

    Run the following:

    
    docker stats $(docker ps --format='{{.Names}}')
    
    CONTAINER           CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
    cAdvisor            4.49%               62.41MiB / 125.9GiB   0.05%               936B / 0B           43.9MB / 0B         44
    Netdata             1.82%               117.4MiB / 125.9GiB   0.09%               3.69kB / 0B         99.6MB / 0B         22
    Emby                0.00%               72.8MiB / 125.9GiB    0.06%               613kB / 1.97MB      162MB / 19.3MB      16
    Heimdall            0.00%               23.98MiB / 125.9GiB   0.02%               3.99kB / 3.35kB     3.11MB / 139kB      14
    Tautulli            0.15%               75.05MiB / 125.9GiB   0.06%               0B / 0B             44.6MB / 139kB      20
    HandBrake           0.24%               282.4MiB / 125.9GiB   0.22%               3.69kB / 0B         270MB / 279kB       70
    Unifi               0.76%               658.8MiB / 125.9GiB   0.51%               9.41MB / 925kB      363MB / 95.5MB      909
    Plex                0.11%               185.1MiB / 125.9GiB   0.14%               2.49MB / 551kB      151MB / 1.09MB      48
    Nginx               0.02%               36.5MiB / 125.9GiB    0.03%               321kB / 0B          44.6MB / 139kB      25
    Pi-hole             0.03%               43.48MiB / 125.9GiB   0.03%               2.72MB / 599kB      104MB / 86MB        22
    Tonido              0.03%               21.11MiB / 125.9GiB   0.02%               380kB / 1.85MB      55.7MB / 2.92MB     28

    Or, and select which columns to display (example below has all columns)

    
     docker stats --format='table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}\t{{.PIDs}}'

     

    thx - pity as 'docker stats' was much easier to remember obviously

    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.