{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10411","labels_url":"https://api.github.com/repos/docker/docker/issues/10411/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/10411/comments","events_url":"https://api.github.com/repos/docker/docker/issues/10411/events","html_url":"https://github.com/docker/docker/pull/10411","id":55734136,"number":10411,"title":"Proposal: add --add-registry and --block-registry options to docker daemon","user":{"login":"miminar","id":1478803,"avatar_url":"https://avatars.githubusercontent.com/u/1478803?v=3","gravatar_id":"","url":"https://api.github.com/users/miminar","html_url":"https://github.com/miminar","followers_url":"https://api.github.com/users/miminar/followers","following_url":"https://api.github.com/users/miminar/following{/other_user}","gists_url":"https://api.github.com/users/miminar/gists{/gist_id}","starred_url":"https://api.github.com/users/miminar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miminar/subscriptions","organizations_url":"https://api.github.com/users/miminar/orgs","repos_url":"https://api.github.com/users/miminar/repos","events_url":"https://api.github.com/users/miminar/events{/privacy}","received_events_url":"https://api.github.com/users/miminar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels//project/doc","name":"/project/doc","color":"207de5"},{"url":"https://api.github.com/repos/docker/docker/labels/1-design-review","name":"1-design-review","color":"fef2c0"},{"url":"https://api.github.com/repos/docker/docker/labels/Proposal","name":"Proposal","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-28T09:44:10Z","updated_at":"2015-03-10T13:16:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/10411","html_url":"https://github.com/docker/docker/pull/10411","diff_url":"https://github.com/docker/docker/pull/10411.diff","patch_url":"https://github.com/docker/docker/pull/10411.patch"},"body":"The first option allows to prepend additional registries to a public one. These will be queried one after another in the order given when pulling images.\r\n    \r\nFor example:\r\n    \r\n    --add-registry=foo.com\r\n    --add-registry=bar.com\r\n    \r\nWould cause a\r\n    \r\n    docker pull myapp\r\nto search\r\n    \r\n    foo.com/myapp\r\n    bar.com/myapp\r\n    docker.io/myapp\r\n    \r\nThe second option builds a list of banned registries. Docker daemon will prevent user from any communication with such registries. This option recognizes a special keywords \"public\" denoting public Docker registry and \"all\" causing all registries except for those added with `--add-registry` flag to be blocked.\r\n    \r\nSo for example adding\r\n    \r\n    --block-registry=public\r\n    \r\nto flags of previous example would result in searching the same registries except for `docker.io/myapp`.\r\n    \r\nThis would allow companies and vendors to specify registries which contain content that the companies will not allowed to be stored at docker.io.\r\n\r\nRegistry mirrors specified with `--registry-mirror` apply just to official repository.\r\n\r\nThis is an attempt to resurrect #5821\r\n\r\nAll the images are now prefixed with their source registry:\r\n\r\n     $ docker images\r\n    REPOSITORY                                             TAG                 IMAGE ID            CREATED             VIRTUAL SIZE\r\n    docker.io/ubuntu                                       14.04               5ba9dab47459        43 hours ago        188.3 MB\r\n    docker.io/ubuntu                                       14.04.1             5ba9dab47459        43 hours ago        188.3 MB\r\n    docker.io/ubuntu                                       latest              5ba9dab47459        43 hours ago        188.3 MB\r\n    docker.io/ubuntu                                       trusty              5ba9dab47459        43 hours ago        188.3 MB\r\n    docker-registry.usersys.redhat.com/vpavlin/rheltools   latest              94bcddfdb384        10 days ago         450.4 MB\r\n    registry.access.redhat.com/rhel7                       0                   bef54b8f8a2f        7 months ago        139.6 MB\r\n    registry.access.redhat.com/rhel7                       0-23                bef54b8f8a2f        7 months ago        139.6 MB\r\n    registry.access.redhat.com/rhel7                       latest              bef54b8f8a2f        7 months ago        139.6 MB\r\n\r\n    $ docker search ubuntu    # last 2 columns omitted\r\n    NAME                                    DESCRIPTION                                     STAR\r\n    docker.io/ubuntu                        Official Ubuntu base image                      1227\r\n    docker.io/dockerfile/ubuntu             Trusted automated Ubuntu (http://www.ubunt...   40\r\n    docker.io/tutum/ubuntu                  Ubuntu image with SSH access. For the root...   14\r\n    docker.io/alsanium/ubuntu               Ubuntu Core image for Docker                    1\r\n    docker.io/sylvainlasnier/ubuntu         Ubuntu 14.10 root docker images with commo...   1\r\n    docker.io/tleyden5iwx/ubuntu-cuda       Ubuntu 14.04 with CUDA drivers pre-installed    1\r\n    docker.io/mhutter/ubuntu                Base Ubuntu Image                               0\r\n    docker.io/partlab/ubuntu                Simple Ubuntu docker images.                    0\r\n    registry.my.org/custom/ubuntu                                                           0\r\n    registry.my.org/my/ubuntu  \r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/78050257","html_url":"https://github.com/docker/docker/pull/10411#issuecomment-78050257","issue_url":"https://api.github.com/repos/docker/docker/issues/10411","id":78050257,"user":{"login":"rhatdan","id":2000835,"avatar_url":"https://avatars.githubusercontent.com/u/2000835?v=3","gravatar_id":"","url":"https://api.github.com/users/rhatdan","html_url":"https://github.com/rhatdan","followers_url":"https://api.github.com/users/rhatdan/followers","following_url":"https://api.github.com/users/rhatdan/following{/other_user}","gists_url":"https://api.github.com/users/rhatdan/gists{/gist_id}","starred_url":"https://api.github.com/users/rhatdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhatdan/subscriptions","organizations_url":"https://api.github.com/users/rhatdan/orgs","repos_url":"https://api.github.com/users/rhatdan/repos","events_url":"https://api.github.com/users/rhatdan/events{/privacy}","received_events_url":"https://api.github.com/users/rhatdan/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T13:16:46Z","updated_at":"2015-03-10T13:16:46Z","body":"@ByteFlinger Yes that seems reasonable."}}