{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/27231","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/27231/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/27231/comments","events_url":"https://api.github.com/repos/docker/docker/issues/27231/events","html_url":"https://github.com/docker/docker/issues/27231","id":181823803,"number":27231,"title":"Filtering nodes doesn't return a result","user":{"login":"sebgie","id":539213,"avatar_url":"https://avatars.githubusercontent.com/u/539213?v=3","gravatar_id":"","url":"https://api.github.com/users/sebgie","html_url":"https://github.com/sebgie","followers_url":"https://api.github.com/users/sebgie/followers","following_url":"https://api.github.com/users/sebgie/following{/other_user}","gists_url":"https://api.github.com/users/sebgie/gists{/gist_id}","starred_url":"https://api.github.com/users/sebgie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebgie/subscriptions","organizations_url":"https://api.github.com/users/sebgie/orgs","repos_url":"https://api.github.com/users/sebgie/repos","events_url":"https://api.github.com/users/sebgie/events{/privacy}","received_events_url":"https://api.github.com/users/sebgie/received_events","type":"User","site_admin":false},"labels":[{"id":392678049,"url":"https://api.github.com/repos/docker/docker/labels/area/swarm","name":"area/swarm","color":"fbca04","default":false},{"id":283253987,"url":"https://api.github.com/repos/docker/docker/labels/priority/P2","name":"priority/P2","color":"fad8c7","default":false},{"id":375714123,"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed","default":false}],"state":"open","locked":false,"assignee":{"login":"nishanttotla","id":1872537,"avatar_url":"https://avatars.githubusercontent.com/u/1872537?v=3","gravatar_id":"","url":"https://api.github.com/users/nishanttotla","html_url":"https://github.com/nishanttotla","followers_url":"https://api.github.com/users/nishanttotla/followers","following_url":"https://api.github.com/users/nishanttotla/following{/other_user}","gists_url":"https://api.github.com/users/nishanttotla/gists{/gist_id}","starred_url":"https://api.github.com/users/nishanttotla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishanttotla/subscriptions","organizations_url":"https://api.github.com/users/nishanttotla/orgs","repos_url":"https://api.github.com/users/nishanttotla/repos","events_url":"https://api.github.com/users/nishanttotla/events{/privacy}","received_events_url":"https://api.github.com/users/nishanttotla/received_events","type":"User","site_admin":false},"assignees":[{"login":"nishanttotla","id":1872537,"avatar_url":"https://avatars.githubusercontent.com/u/1872537?v=3","gravatar_id":"","url":"https://api.github.com/users/nishanttotla","html_url":"https://github.com/nishanttotla","followers_url":"https://api.github.com/users/nishanttotla/followers","following_url":"https://api.github.com/users/nishanttotla/following{/other_user}","gists_url":"https://api.github.com/users/nishanttotla/gists{/gist_id}","starred_url":"https://api.github.com/users/nishanttotla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishanttotla/subscriptions","organizations_url":"https://api.github.com/users/nishanttotla/orgs","repos_url":"https://api.github.com/users/nishanttotla/repos","events_url":"https://api.github.com/users/nishanttotla/events{/privacy}","received_events_url":"https://api.github.com/users/nishanttotla/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/56","html_url":"https://github.com/docker/docker/milestones/1.13.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/56/labels","id":1839404,"number":56,"title":"1.13.0","description":"","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":110,"closed_issues":648,"state":"open","created_at":"2016-06-20T22:51:25Z","updated_at":"2016-11-09T03:22:09Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-10-08T12:35:26Z","updated_at":"2016-11-09T07:14:22Z","closed_at":null,"body":"**Description**\n\nHi, I have started to use 1.12 with it's new features lately. I have a 4 node cluster (1 manager, 3 workers with swarm mode) and try to put workloads on dedicated machines. While doing that I came accross either a bug or something that is missing from documentation?\n\nI have added a label to one of my nodes and then try to execute `docker node ls` with a filter as described here: https://docs.docker.com/engine/reference/commandline/node_ls/#filtering. Unfortunately I don't get the expected response?\n\n**Steps to reproduce the issue:**\n\n```\n# docker node update --label-add test dev-swarm-04\ndev-swarm-04\n\n# docker node inspect dev-swarm-04\n[\n    {\n        \"ID\": \"7p470z31yf2u27t7wx48og9b0\",\n        \"Version\": {\n            \"Index\": 8545\n        },\n        \"CreatedAt\": \"2016-10-05T13:42:10.303870096Z\",\n        \"UpdatedAt\": \"2016-10-08T12:15:32.624496559Z\",\n        \"Spec\": {\n            \"Labels\": {\n                \"test\": \"\"\n            },\n            \"Role\": \"worker\",\n            \"Availability\": \"active\"\n        },\n        \"Description\": {\n            \"Hostname\": \"dev-swarm-04\",\n            \"Platform\": {\n                \"Architecture\": \"x86_64\",\n                \"OS\": \"linux\"\n            },\n            \"Resources\": {\n                \"NanoCPUs\": 4000000000,\n                \"MemoryBytes\": 8371408896\n            },\n            \"Engine\": {\n                \"EngineVersion\": \"1.12.1\",\n                \"Plugins\": [\n                    {\n                        \"Type\": \"Network\",\n                        \"Name\": \"bridge\"\n                    },\n                    {\n                        \"Type\": \"Network\",\n                        \"Name\": \"host\"\n                    },\n                    {\n                        \"Type\": \"Network\",\n                        \"Name\": \"null\"\n                    },\n                    {\n                        \"Type\": \"Network\",\n                        \"Name\": \"overlay\"\n                    },\n                    {\n                        \"Type\": \"Volume\",\n                        \"Name\": \"local\"\n                    }\n                ]\n            }\n        },\n        \"Status\": {\n            \"State\": \"ready\"\n        }\n    }\n]\n\n# docker node ls -f label=test\nID  HOSTNAME  STATUS  AVAILABILITY  MANAGER STATUS\n\n```\n\n**Describe the results you received:**\nNo nodes found.\n\n**Describe the results you expected:**\nOne node (dev-swarm-04) found.\n\n**Additional information you deem important (e.g. issue happens only occasionally):**\nAdditonally I couldn't find any documentation how I would use a value with my label.\n\n`# docker node ls -f label=test=value`?\n`# docker node ls -f label=test:value`?\n`# docker node ls -f label.test=value`?\n\nUsing the label as a constraint to create a service works flawlessly :+1:.\nThanks for your help :).\n\n**Output of `docker version`:**\n\n```\nClient:\n Version:      1.12.1\n API version:  1.24\n Go version:   go1.6.3\n Git commit:   23cf638\n Built:        Thu Aug 18 05:33:38 2016\n OS/Arch:      linux/amd64\n\nServer:\n Version:      1.12.1\n API version:  1.24\n Go version:   go1.6.3\n Git commit:   23cf638\n Built:        Thu Aug 18 05:33:38 2016\n OS/Arch:      linux/amd64\n```\n\n**Output of `docker info`:**\n\n```\nContainers: 16\n Running: 3\n Paused: 0\n Stopped: 13\nImages: 204\nServer Version: 1.12.1\nStorage Driver: devicemapper\n Pool Name: docker-253:1-916657-pool\n Pool Blocksize: 65.54 kB\n Base Device Size: 10.74 GB\n Backing Filesystem: xfs\n Data file: /dev/loop0\n Metadata file: /dev/loop1\n Data Space Used: 11.68 GB\n Data Space Total: 107.4 GB\n Data Space Available: 69.87 GB\n Metadata Space Used: 19.42 MB\n Metadata Space Total: 2.147 GB\n Metadata Space Available: 2.128 GB\n Thin Pool Minimum Free Space: 10.74 GB\n Udev Sync Supported: true\n Deferred Removal Enabled: false\n Deferred Deletion Enabled: false\n Deferred Deleted Device Count: 0\n Data loop file: /var/lib/docker/devicemapper/devicemapper/data\n WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.\n Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata\n Library Version: 1.02.110 (2015-10-30)\nLogging Driver: json-file\nCgroup Driver: cgroupfs\nPlugins:\n Volume: local\n Network: overlay bridge host null\nSwarm: active\n NodeID: 5uzh00gzxmquexfcmurnq6ypm\n Is Manager: true\n ClusterID: 7vryc5c1s75o0jkttokhyo6dc\n Managers: 1\n Nodes: 4\n Orchestration:\n  Task History Retention Limit: 5\n Raft:\n  Snapshot Interval: 10000\n  Heartbeat Tick: 1\n  Election Tick: 3\n Dispatcher:\n  Heartbeat Period: 5 seconds\n CA Configuration:\n  Expiry Duration: 3 months\n Node Address: 10.133.13.82\nRuntimes: runc\nDefault Runtime: runc\nSecurity Options: apparmor seccomp\nKernel Version: 4.4.0-36-generic\nOperating System: Ubuntu 16.04.1 LTS\nOSType: linux\nArchitecture: x86_64\nCPUs: 12\nTotal Memory: 31.42 GiB\nName: dev-swarm-01\nID: 3FQW:TNXG:PUD2:FW4B:FU4Y:YS6E:NYCR:RGET:6SKY:LCOF:FW2G:UOE6\nDocker Root Dir: /var/lib/docker\nDebug Mode (client): false\nDebug Mode (server): false\nUsername: sebgieghost\nRegistry: https://index.docker.io/v1/\nWARNING: No swap limit support\nInsecure Registries:\n 127.0.0.0/8\n```\n\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\nUbuntu 16.04\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/259348065","html_url":"https://github.com/docker/docker/issues/27231#issuecomment-259348065","issue_url":"https://api.github.com/repos/docker/docker/issues/27231","id":259348065,"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-11-09T07:14:22Z","updated_at":"2016-11-09T07:14:22Z","body":"Hi, @aluzzardi \r\nI think currently the way how docker deals the label is very important for users. I put forward a PR https://github.com/docker/docker/pull/28192 to include more description on `docker node ls -f \"label=a\"` "}}
{"actor":{"display_login":"allencloud"}}