-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Closed
Copy link
Labels
area/apiAPIAPIarea/cliClientClientkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.status/claimed
Description
Currently the output of docker info looks like:
$ docker info
Containers: 1362
Images: 145
Storage Driver: overlay
Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.4-1-ARCH
Operating System: Arch Linux
CPUs: 8
Total Memory: 15.6 GiB
Name: archbox
ID: OUQD:OBQE:7KQO:2FQ5:YJIC:ILXS:O7SE:PWEK:3ZWT:PG7I:RUPA:2EIW
This does not really help at a first glance to assess how many containers are running on a machine. Indeed on those 1362 containers, I only have 10 running containers, the rest are stopped. I might have a few paused containers too.
This would be useful in docker info to show more informations on the current state of containers:
$ docker info
Containers: 1362
Running: 8
Paused: 2
Stopped: 1352
Images: 145
Storage Driver: overlay
Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.4-1-ARCH
Operating System: Arch Linux
CPUs: 8
Total Memory: 15.6 GiB
Name: archbox
ID: OUQD:OBQE:7KQO:2FQ5:YJIC:ILXS:O7SE:PWEK:3ZWT:PG7I:RUPA:2EIW
This also means adding this to the remote API on /info. This way we can also use it in Swarm as a quick way to assess the load on machines (see related issue on the Swarm side docker-archive/classicswarm#1140)
I agree that this information is provided somehow by docker ps but this could be an added convenience to have this on info 😃
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/apiAPIAPIarea/cliClientClientkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.status/claimed