Description
Use docker stats byname to display the statistic of the container and then rename the container,
the container name display in CONTAINER column does not change.
[lei@fedora docker]$ docker run -tid --name test busybox
308fb0316bc67722a242b7ca50b5ad57735318bd1b38002e5820ed8ea0ca9d6d
[lei@fedora docker]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
308fb0316bc6 busybox "sh" 3 seconds ago Up 2 seconds test
[lei@fedora docker]$ docker rename test foo
[lei@fedora docker]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
308fb0316bc6 busybox "sh" 34 seconds ago Up 33 seconds foo
CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
test 0.00% 168 KiB / 3.858 GiB 0.00% 0 B / 648 B 0 B / 0 B 1
Steps to reproduce the issue:
- docker run -tid --name test busybox
- docker stats test
- docker rename test foo
Describe the results you received:
the container name in CONTAINER column remain unchanged after docker rename
Describe the results you expected:
the container name in CONTAINER of docker stats should changed after docker rename
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.):
Description
Use docker stats byname to display the statistic of the container and then rename the container,
the container name display in
CONTAINERcolumn does not change.Steps to reproduce the issue:
Describe the results you received:
the container name in
CONTAINERcolumn remain unchanged after docker renameDescribe the results you expected:
the container name in
CONTAINERof docker stats should changed after docker renameAdditional 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.):