{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/20356","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/20356/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/20356/comments","events_url":"https://api.github.com/repos/docker/docker/issues/20356/events","html_url":"https://github.com/docker/docker/issues/20356","id":134007195,"number":20356,"title":"Proposal: Labels for non-container resources","user":{"login":"ehazlett","id":260642,"avatar_url":"https://avatars.githubusercontent.com/u/260642?v=3","gravatar_id":"","url":"https://api.github.com/users/ehazlett","html_url":"https://github.com/ehazlett","followers_url":"https://api.github.com/users/ehazlett/followers","following_url":"https://api.github.com/users/ehazlett/following{/other_user}","gists_url":"https://api.github.com/users/ehazlett/gists{/gist_id}","starred_url":"https://api.github.com/users/ehazlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehazlett/subscriptions","organizations_url":"https://api.github.com/users/ehazlett/orgs","repos_url":"https://api.github.com/users/ehazlett/repos","events_url":"https://api.github.com/users/ehazlett/events{/privacy}","received_events_url":"https://api.github.com/users/ehazlett/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/kind/feature","name":"kind/feature","color":"AAB3AB"},{"url":"https://api.github.com/repos/docker/docker/labels/roadmap","name":"roadmap","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"tiborvass","id":827131,"avatar_url":"https://avatars.githubusercontent.com/u/827131?v=3","gravatar_id":"","url":"https://api.github.com/users/tiborvass","html_url":"https://github.com/tiborvass","followers_url":"https://api.github.com/users/tiborvass/followers","following_url":"https://api.github.com/users/tiborvass/following{/other_user}","gists_url":"https://api.github.com/users/tiborvass/gists{/gist_id}","starred_url":"https://api.github.com/users/tiborvass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiborvass/subscriptions","organizations_url":"https://api.github.com/users/tiborvass/orgs","repos_url":"https://api.github.com/users/tiborvass/repos","events_url":"https://api.github.com/users/tiborvass/events{/privacy}","received_events_url":"https://api.github.com/users/tiborvass/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/49","html_url":"https://github.com/docker/docker/milestones/1.11.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/49/labels","id":1529231,"number":49,"title":"1.11.0","description":"Code freeze / feature freeze 17 March 2016\r\nPlanned release: 7 April 2016\r\n\r\nhttps://github.com/docker/docker/wiki/Engine-1.11.0","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":31,"closed_issues":43,"state":"open","created_at":"2016-01-21T01:33:46Z","updated_at":"2016-03-09T09:12:03Z","due_on":"2016-04-06T22:00:00Z","closed_at":null},"comments":12,"created_at":"2016-02-16T15:14:51Z","updated_at":"2016-03-09T19:33:01Z","closed_at":null,"body":"I would like to propose having labels for non-container resources.  To start with, these would include:\r\n\r\n- Networks\r\n- Volumes\r\n- Images (post build)?\r\n\r\nFor networks and volumes the same syntax as containers could be used.  For example:\r\n\r\n`docker volume create -d local --label env=staging --label backup=1 redis-data`\r\n\r\n`docker network create -d overlay --label env=staging --label app=test-app-v0 backend`\r\n\r\nFor images, it would be best to have something like https://github.com/docker/docker/pull/18958 to add labels.  However, update support / image labels might be out of scope for this proposal."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/194469358","html_url":"https://github.com/docker/docker/issues/20356#issuecomment-194469358","issue_url":"https://api.github.com/repos/docker/docker/issues/20356","id":194469358,"user":{"login":"tiborvass","id":827131,"avatar_url":"https://avatars.githubusercontent.com/u/827131?v=3","gravatar_id":"","url":"https://api.github.com/users/tiborvass","html_url":"https://github.com/tiborvass","followers_url":"https://api.github.com/users/tiborvass/followers","following_url":"https://api.github.com/users/tiborvass/following{/other_user}","gists_url":"https://api.github.com/users/tiborvass/gists{/gist_id}","starred_url":"https://api.github.com/users/tiborvass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiborvass/subscriptions","organizations_url":"https://api.github.com/users/tiborvass/orgs","repos_url":"https://api.github.com/users/tiborvass/repos","events_url":"https://api.github.com/users/tiborvass/events{/privacy}","received_events_url":"https://api.github.com/users/tiborvass/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T19:33:01Z","updated_at":"2016-03-09T19:33:01Z","body":"Forgot to say that, that UX proposal should cover the usecases mentioned here.\r\nBut just to be sure I understood @simonvanderveldt: would it work for you if you to use `docker build` followed by `docker label` to set the label on the image you just built? I assume yes, but I would like to be sure."}}