{"id":1162,"date":"2020-09-08T20:09:44","date_gmt":"2020-09-08T12:09:44","guid":{"rendered":"https:\/\/freeapp.sbs\/blog\/?p=1162"},"modified":"2025-07-04T15:28:46","modified_gmt":"2025-07-04T06:28:46","slug":"quzxgpnga96pjvd","status":"publish","type":"post","link":"https:\/\/eternalsphere.net\/echoes\/index.php\/2020\/09\/08\/quzxgpnga96pjvd\/","title":{"rendered":"Ubuntu Linux\u4e0b\u4fee\u6539docker\u955c\u50cf\u6e90"},"content":{"rendered":"<h6 class=\"md-end-block md-p md-focus\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain md-expand\">Ubuntu Linux\u4e0b\u4fee\u6539docker\u955c\u50cf\u6e90<\/span><\/h6>\n<p class=\"md-end-block md-p md-focus\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain\">\u5728\u56fd\u5185\u8bbf\u95ee\u56fd\u5916\u7684Docker\u955c\u50cf\u6e90\u901a\u5e38\u90fd\u662f\u975e\u5e38\u6162\u7684\uff0c\u7279\u522b\u662f\u6700\u8fd1GFW\u5347\u7ea7\u540e\uff0c\u5c31\u53d8\u5f97\u66f4\u52a0\u6162\u4e86\uff0c\u56e0\u4e3a\u8981\u4f7f\u7528Docker\u4e2d\u7684\u955c\u50cf\uff0c\u8fd9\u4e2a\u65f6\u5019\u6700\u597d\u5c31\u662f\u5c06\u955c\u50cf\u6307\u5411\u56fd\u5185\u7684\u8d44\u6e90\u3002<\/span><\/p>\n<p class=\"md-end-block md-p\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain\">\u56fd\u5185\u4eb2\u6d4b\u53ef\u7528\u7684\u51e0\u4e2a\u955c\u50cf\u6e90\uff1a<\/span><\/p>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-color: #f8f8f8;border-color: #e7eaed;border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;position: relative !important\"><span style=\"padding-right: 0.1px\" role=\"presentation\">Docker \u5b98\u65b9\u4e2d\u56fd\u533a\uff1ahttps:\/\/registry.docker-cn.com<\/span>\n<span style=\"padding-right: 0.1px\" role=\"presentation\">\u7f51\u6613\uff1ahttp:\/\/hub-mirror.c.163.com<\/span>\n<span style=\"padding-right: 0.1px\" role=\"presentation\">\u4e2d\u56fd\u79d1\u6280\u5927\u5b66\uff1ahttps:\/\/docker.mirrors.ustc.edu.cn<\/span>\n<span style=\"padding-right: 0.1px\" role=\"presentation\">\u963f\u91cc\u4e91\uff1ahttps:\/\/y0qd3iq.mirror.aliyuncs.com<\/span><\/pre>\n<p class=\"md-end-block md-p\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain\">\u589e\u52a0Docker\u7684\u955c\u50cf\u6e90\u914d\u7f6e\u6587\u4ef6 \/etc\/docker\/daemon.json\uff0c\u5982\u679c\u6ca1\u6709\u914d\u7f6e\u8fc7\u955c\u50cf\u8be5\u6587\u4ef6\u9ed8\u8ba4\u662f\u4e0d\u5b58\u7684\uff0c\u5728\u5176\u4e2d\u589e\u52a0\u5982\u4e0b\u5185\u5bb9\uff1a<\/span><\/p>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-color: #f8f8f8;border-color: #e7eaed;border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;position: relative !important\"><span style=\"padding-right: 0.1px\" role=\"presentation\">{<\/span>\n<span style=\"padding-right: 0.1px\" role=\"presentation\">  \"registry-mirrors\": [\"https:\/\/y0qd3iq.mirror.aliyuncs.com\"]<\/span>\n<span style=\"padding-right: 0.1px\" role=\"presentation\">}<\/span><\/pre>\n<p class=\"md-end-block md-p\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain\">\u5176\u4e2d\u7684URL\u5c31\u662f\u6307\u5b9a\u7684\u955c\u50cf\u6e90\uff0c\u53ef\u4ee5\u5c06\u5176\u8bbe\u7f6e\u4e3a\u4e0a\u9762\u8bf4\u7684\u56db\u4e2a\u955c\u50cf\u6e90\u4e2d\u7684\u4efb\u4f55\u4e00\u4e2a\u3002<\/span><\/p>\n<p class=\"md-end-block md-p\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain\">\u7136\u540e\u91cd\u542fDocker\u670d\u52a1\uff1a<\/span><\/p>\n<p class=\"md-end-block md-p\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain\">service docker restart<\/span><\/p>\n<p class=\"md-end-block md-p\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain\">\u7136\u540e\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u914d\u7f6e\u662f\u5426\u751f\u6548\uff1a<\/span><\/p>\n<p class=\"md-end-block md-p\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain\">docker info|grep Mirrors -A 1<\/span><\/p>\n<p class=\"md-end-block md-p\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain\">\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u7684\u8f93\u51fa\uff1a<\/span><\/p>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-color: #f8f8f8;border-color: #e7eaed;border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;position: relative !important\"><span style=\"padding-right: 0.1px\" role=\"presentation\">Registry Mirrors:<\/span>\n<span style=\"padding-right: 0.1px\" role=\"presentation\"> https:\/\/y0qd3iq.mirror.aliyuncs.com\/<\/span><\/pre>\n<p class=\"md-end-block md-p\" style=\"line-height: inherit;margin: 0.8em 0px;position: relative;font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif\"><span class=\"md-plain\">\u5c31\u8868\u793a\u955c\u50cf\u914d\u7f6e\u6210\u529f\uff0c\u7136\u540e\u518d\u6267\u884cdocker pull\u64cd\u4f5c\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu Linux\u4e0b\u4fee\u6539docker\u955c\u50cf\u6e90 \u5728\u56fd\u5185\u8bbf\u95ee\u56fd\u5916\u7684Docker\u955c\u50cf\u6e90\u901a\u5e38\u90fd\u662f\u975e\u5e38\u6162\u7684\uff0c\u7279\u522b\u662f\u6700\u8fd1GFW\u5347\u7ea7\u540e\uff0c\u5c31\u53d8\u5f97\u66f4\u52a0\u6162\u4e86\uff0c\u56e0\u4e3a\u8981\u4f7f\u7528Docker\u4e2d\u7684\u955c\u50cf\uff0c\u8fd9\u4e2a\u65f6\u5019\u6700\u597d\u5c31\u662f\u5c06\u955c\u50cf\u6307\u5411\u56fd\u5185\u7684\u8d44\u6e90\u3002 \u56fd\u5185\u4eb2\u6d4b\u53ef\u7528\u7684\u51e0\u4e2a\u955c\u50cf\u6e90\uff1a Docker \u5b98\u65b9\u4e2d\u56fd\u533a\uff1ahttps:\/\/registry.docker-cn.com \u7f51\u6613\uff1ahttp:\/\/hub-mirror.c.163.com \u4e2d\u56fd\u79d1\u6280\u5927\u5b66\uff1ahttps:\/\/docker.mirrors.ustc.edu.cn \u963f\u91cc\u4e91\uff1ahttps:\/\/y0qd3iq.mirror.aliyuncs.com \u589e\u52a0Docker\u7684\u955c\u50cf\u6e90\u914d\u7f6e\u6587\u4ef6 \/etc\/docker\/daemon.json\uff0c\u5982\u679c\u6ca1\u6709\u914d\u7f6e\u8fc7\u955c\u50cf\u8be5\u6587\u4ef6\u9ed8\u8ba4\u662f\u4e0d\u5b58\u7684\uff0c\u5728\u5176\u4e2d\u589e\u52a0\u5982\u4e0b\u5185\u5bb9\uff1a { &#8220;registry-mirrors&#8221;: [&#8220;https:\/\/y0qd3iq.mirror.aliyuncs.com&#8221;] } \u5176\u4e2d\u7684URL\u5c31\u662f\u6307\u5b9a\u7684\u955c\u50cf\u6e90\uff0c\u53ef\u4ee5\u5c06\u5176\u8bbe\u7f6e\u4e3a\u4e0a\u9762\u8bf4\u7684\u56db\u4e2a\u955c\u50cf\u6e90\u4e2d\u7684\u4efb\u4f55\u4e00\u4e2a\u3002 \u7136\u540e\u91cd\u542fDocker\u670d\u52a1\uff1a service docker restart \u7136\u540e\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u914d\u7f6e\u662f\u5426\u751f\u6548\uff1a docker info|grep Mirrors -A 1 \u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u7684\u8f93\u51fa\uff1a Registry Mirrors: https:\/\/y0qd3iq.mirror.aliyuncs.com\/ \u5c31\u8868\u793a\u955c\u50cf\u914d\u7f6e\u6210\u529f\uff0c\u7136\u540e\u518d\u6267\u884cdocker pull\u64cd\u4f5c\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-1162","post","type-post","status-publish","format-standard","hentry","category-ayo0bcjn5seq2"],"_links":{"self":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/1162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/comments?post=1162"}],"version-history":[{"count":3,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/1162\/revisions"}],"predecessor-version":[{"id":4438,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/1162\/revisions\/4438"}],"wp:attachment":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/media?parent=1162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/categories?post=1162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/tags?post=1162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}