{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/48039420","id":48039420,"diff_hunk":"@@ -999,6 +1001,21 @@ Both flags take limits in the `<device-path>:<limit>[unit]` format. Both read\n and write rates must be a positive integer. You can specify the rate in `kb`\n (kilobytes), `mb` (megabytes), or `gb` (gigabytes).\n \n+The `--device-read-iops` flag limits read rate (IO per second) from a device.\n+For example, this command creates a container and limits the read rate to\n+`1000` per second from `/dev/sda`:\n+\n+    $ docker run -ti --device-read-iops /dev/sda:1000 ubuntu\n+\n+The `--device-write-iops` flag limits write rate (IO per second) to a device.\n+For example, this command creates a container and limits the write rate to\n+`1000` per second to `/dev/sda`:","path":"docs/reference/run.md","position":43,"original_position":43,"commit_id":"274dad51dc3e8c3aeafd974e19b299afa8b8f2bb","original_commit_id":"274dad51dc3e8c3aeafd974e19b299afa8b8f2bb","user":{"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},"body":"nit: s/`1000` per second/`1000` IO per second/","created_at":"2015-12-18T16:02:43Z","updated_at":"2015-12-18T16:02:43Z","html_url":"https://github.com/docker/docker/pull/15879#discussion_r48039420","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/15879","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/48039420"},"html":{"href":"https://github.com/docker/docker/pull/15879#discussion_r48039420"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/15879"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/15879","id":43480557,"html_url":"https://github.com/docker/docker/pull/15879","diff_url":"https://github.com/docker/docker/pull/15879.diff","patch_url":"https://github.com/docker/docker/pull/15879.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/15879","number":15879,"state":"open","locked":false,"title":"Add support for blkio read/write iops device","user":{"login":"Mashimiao","id":4852224,"avatar_url":"https://avatars.githubusercontent.com/u/4852224?v=3","gravatar_id":"","url":"https://api.github.com/users/Mashimiao","html_url":"https://github.com/Mashimiao","followers_url":"https://api.github.com/users/Mashimiao/followers","following_url":"https://api.github.com/users/Mashimiao/following{/other_user}","gists_url":"https://api.github.com/users/Mashimiao/gists{/gist_id}","starred_url":"https://api.github.com/users/Mashimiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mashimiao/subscriptions","organizations_url":"https://api.github.com/users/Mashimiao/orgs","repos_url":"https://api.github.com/users/Mashimiao/repos","events_url":"https://api.github.com/users/Mashimiao/events{/privacy}","received_events_url":"https://api.github.com/users/Mashimiao/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>","created_at":"2015-08-27T05:24:23Z","updated_at":"2015-12-18T16:02:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a9c561e19eb8ca3f19d9c116954938097a52f3d","assignee":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker/pulls/15879/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/15879/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/15879/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/274dad51dc3e8c3aeafd974e19b299afa8b8f2bb","head":{"label":"Mashimiao:add-support-blkio_throtte_iops","ref":"add-support-blkio_throtte_iops","sha":"274dad51dc3e8c3aeafd974e19b299afa8b8f2bb","user":{"login":"Mashimiao","id":4852224,"avatar_url":"https://avatars.githubusercontent.com/u/4852224?v=3","gravatar_id":"","url":"https://api.github.com/users/Mashimiao","html_url":"https://github.com/Mashimiao","followers_url":"https://api.github.com/users/Mashimiao/followers","following_url":"https://api.github.com/users/Mashimiao/following{/other_user}","gists_url":"https://api.github.com/users/Mashimiao/gists{/gist_id}","starred_url":"https://api.github.com/users/Mashimiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mashimiao/subscriptions","organizations_url":"https://api.github.com/users/Mashimiao/orgs","repos_url":"https://api.github.com/users/Mashimiao/repos","events_url":"https://api.github.com/users/Mashimiao/events{/privacy}","received_events_url":"https://api.github.com/users/Mashimiao/received_events","type":"User","site_admin":false},"repo":{"id":29891455,"name":"docker","full_name":"Mashimiao/docker","owner":{"login":"Mashimiao","id":4852224,"avatar_url":"https://avatars.githubusercontent.com/u/4852224?v=3","gravatar_id":"","url":"https://api.github.com/users/Mashimiao","html_url":"https://github.com/Mashimiao","followers_url":"https://api.github.com/users/Mashimiao/followers","following_url":"https://api.github.com/users/Mashimiao/following{/other_user}","gists_url":"https://api.github.com/users/Mashimiao/gists{/gist_id}","starred_url":"https://api.github.com/users/Mashimiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mashimiao/subscriptions","organizations_url":"https://api.github.com/users/Mashimiao/orgs","repos_url":"https://api.github.com/users/Mashimiao/repos","events_url":"https://api.github.com/users/Mashimiao/events{/privacy}","received_events_url":"https://api.github.com/users/Mashimiao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mashimiao/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/Mashimiao/docker","forks_url":"https://api.github.com/repos/Mashimiao/docker/forks","keys_url":"https://api.github.com/repos/Mashimiao/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mashimiao/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mashimiao/docker/teams","hooks_url":"https://api.github.com/repos/Mashimiao/docker/hooks","issue_events_url":"https://api.github.com/repos/Mashimiao/docker/issues/events{/number}","events_url":"https://api.github.com/repos/Mashimiao/docker/events","assignees_url":"https://api.github.com/repos/Mashimiao/docker/assignees{/user}","branches_url":"https://api.github.com/repos/Mashimiao/docker/branches{/branch}","tags_url":"https://api.github.com/repos/Mashimiao/docker/tags","blobs_url":"https://api.github.com/repos/Mashimiao/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mashimiao/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mashimiao/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mashimiao/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mashimiao/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/Mashimiao/docker/languages","stargazers_url":"https://api.github.com/repos/Mashimiao/docker/stargazers","contributors_url":"https://api.github.com/repos/Mashimiao/docker/contributors","subscribers_url":"https://api.github.com/repos/Mashimiao/docker/subscribers","subscription_url":"https://api.github.com/repos/Mashimiao/docker/subscription","commits_url":"https://api.github.com/repos/Mashimiao/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mashimiao/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mashimiao/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mashimiao/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mashimiao/docker/contents/{+path}","compare_url":"https://api.github.com/repos/Mashimiao/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mashimiao/docker/merges","archive_url":"https://api.github.com/repos/Mashimiao/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mashimiao/docker/downloads","issues_url":"https://api.github.com/repos/Mashimiao/docker/issues{/number}","pulls_url":"https://api.github.com/repos/Mashimiao/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/Mashimiao/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/Mashimiao/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mashimiao/docker/labels{/name}","releases_url":"https://api.github.com/repos/Mashimiao/docker/releases{/id}","created_at":"2015-01-27T01:32:55Z","updated_at":"2015-03-25T15:12:01Z","pushed_at":"2015-12-18T05:37:16Z","git_url":"git://github.com/Mashimiao/docker.git","ssh_url":"git@github.com:Mashimiao/docker.git","clone_url":"https://github.com/Mashimiao/docker.git","svn_url":"https://github.com/Mashimiao/docker","homepage":"http://www.docker.com","size":76227,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"6bf8844f1179108b9fabd271a655bf9eaaf1ee8c","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-12-18T15:53:33Z","pushed_at":"2015-12-18T16:00:11Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":119050,"stargazers_count":27116,"watchers_count":27116,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7398,"mirror_url":null,"open_issues_count":1254,"forks":7398,"open_issues":1254,"watchers":27116,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/15879"},"html":{"href":"https://github.com/docker/docker/pull/15879"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/15879"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/15879/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/15879/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/15879/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/274dad51dc3e8c3aeafd974e19b299afa8b8f2bb"}}}}