[Docker 1.13.0] "panic: runtime error: slice bounds out of range" when docker stats --format
#30277
Labels
area/cli
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
version/1.13
Description
If no container is running on the host, then run the command
docker stats --format 'table {{.Name}}'
will cause panic.Steps to reproduce the issue:
$ docker stats --format 'table {{.Name}}'
Describe the results you received:
Describe the results you expected:
Should be the name field of the containers.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
I tested on both my local laptop with Docker for Mac
1.13.0-rc7
and brand new Digital Ocean droplet with Docker1.13.0
.The text was updated successfully, but these errors were encountered: