{"action":"created","issue":{"url":"https://api.github.com/repos/docker/swarm/issues/2141","repository_url":"https://api.github.com/repos/docker/swarm","labels_url":"https://api.github.com/repos/docker/swarm/issues/2141/labels{/name}","comments_url":"https://api.github.com/repos/docker/swarm/issues/2141/comments","events_url":"https://api.github.com/repos/docker/swarm/issues/2141/events","html_url":"https://github.com/docker/swarm/issues/2141","id":149415696,"number":2141,"title":"docker info: display number of running containers per node","user":{"login":"schmunk42","id":649031,"avatar_url":"https://avatars.githubusercontent.com/u/649031?v=3","gravatar_id":"","url":"https://api.github.com/users/schmunk42","html_url":"https://github.com/schmunk42","followers_url":"https://api.github.com/users/schmunk42/followers","following_url":"https://api.github.com/users/schmunk42/following{/other_user}","gists_url":"https://api.github.com/users/schmunk42/gists{/gist_id}","starred_url":"https://api.github.com/users/schmunk42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmunk42/subscriptions","organizations_url":"https://api.github.com/users/schmunk42/orgs","repos_url":"https://api.github.com/users/schmunk42/repos","events_url":"https://api.github.com/users/schmunk42/events{/privacy}","received_events_url":"https://api.github.com/users/schmunk42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-19T10:22:30Z","updated_at":"2016-04-19T13:42:16Z","closed_at":null,"body":"When running `docker info`:\r\n\r\n```\r\n# docker info\r\ndocker info\r\nContainers: 124\r\n Running: 124\r\n Paused: 0\r\n Stopped: 0\r\nImages: 248\r\nServer Version: swarm/1.1.3\r\nRole: primary\r\nStrategy: spread\r\nFilters: health, port, dependency, affinity, constraint\r\nNodes: 4\r\n node-122: 1.2.3.4:2376\r\n  └ Status: Healthy\r\n  └ Containers: 58\r\n  └ Reserved CPUs: 0 / 2\r\n  └ Reserved Memory: 0 B / 4.053 GiB\r\n  └ Labels: app=1, executiondriver=native-0.2, kernelversion=4.2.0-30-generic, operatingsystem=Ubuntu 15.10, provider=generic, storagedriver=aufs\r\n  └ Error: (none)\r\n  └ UpdatedAt: 2016-04-19T10:17:35Z\r\n[...]\r\n```\r\n\r\n... the output contains the count of all containers, including i.e. exited ones. I'd propose to add the number of runnings containers also, like\r\n\r\n```\r\n  └ Containers: 58 (40 running)\r\n```\r\n\r\nRelated: https://github.com/docker/swarm/issues/2096"},"comment":{"url":"https://api.github.com/repos/docker/swarm/issues/comments/211927596","html_url":"https://github.com/docker/swarm/issues/2141#issuecomment-211927596","issue_url":"https://api.github.com/repos/docker/swarm/issues/2141","id":211927596,"user":{"login":"allencloud","id":9465626,"avatar_url":"https://avatars.githubusercontent.com/u/9465626?v=3","gravatar_id":"","url":"https://api.github.com/users/allencloud","html_url":"https://github.com/allencloud","followers_url":"https://api.github.com/users/allencloud/followers","following_url":"https://api.github.com/users/allencloud/following{/other_user}","gists_url":"https://api.github.com/users/allencloud/gists{/gist_id}","starred_url":"https://api.github.com/users/allencloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allencloud/subscriptions","organizations_url":"https://api.github.com/users/allencloud/orgs","repos_url":"https://api.github.com/users/allencloud/repos","events_url":"https://api.github.com/users/allencloud/events{/privacy}","received_events_url":"https://api.github.com/users/allencloud/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T13:42:16Z","updated_at":"2016-04-19T13:42:16Z","body":"@schmunk42 \r\nReasonable, more specific details about containers on each node."}}