moby: docker stats does not show any information (only dashes)
Description
docker stats does not show any information (only dashes)
CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
5a747311e388 -- -- / -- -- -- -- --
70d97e3244fb -- -- / -- -- -- -- --
0f3944c9e538 -- -- / -- -- -- -- --
6ca5a74de9ba -- -- / -- -- -- -- --
Steps to reproduce the issue:
docker stats
Describe the results you received: a lot of dashes
Describe the results you expected: docker statistics
Output of docker version
:
docker -v
Docker version 17.06.0-ce, build 02c1d87
Output of docker info
:
docker info
Containers: 4
Running: 3
Paused: 0
Stopped: 1
Images: 61
Server Version: 17.06.0-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 62
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfb82a876ecc11b5ca0977d1733adbe58599088a
runc version: 2d41c047c83e09a6d61d464906feb2a2f3c52aa4
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-83-generic
Operating System: Ubuntu 16.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 992.3MiB
Name: avia
ID: HH3W:SAVA:WEZS:VBJB:YZ22:RQLW:LEUF:VVSO:E23E:RWCO:KVD2:MDIA
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
Additional environment details (AWS, VirtualBox, physical, etc.):
uname -a
Linux avia 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 9
- Comments: 18 (5 by maintainers)
This happens after some time (hour or two) of normal
stats
.I’m having the same issue. I’m using docker stats through a Python script to collect CPU and memory usage of a container while a client sends requests so to analyze its behaviour. I’m reading some values correctly, then a lot of values get dashes for a long time. It looks like it gets better when the container is under high load, while it shows dashes frequently when the container is nearly idle.
I’m doing these tests on a Raspberry Pi 3 B with Raspbian.
uname -a
docker version
docker info
EDIT: this behaviour is not observable on another machine (Arch Linux) on which I ran the same tests.
uname -a
docker version
docker info