{"id":4337,"date":"2023-04-29T17:30:27","date_gmt":"2023-04-29T09:30:27","guid":{"rendered":"https:\/\/www.liangliang.org.cn\/?p=4337"},"modified":"2023-04-29T21:14:58","modified_gmt":"2023-04-29T13:14:58","slug":"docker-ce-23-0-5-1-el7-x86_64-rpm-errno-1-%e8%bd%af%e4%bb%b6%e5%8c%85%e4%b8%8e%e9%a2%84%e6%9c%9f%e4%b8%8b%e8%bd%bd%e7%9a%84%e4%b8%8d%e7%ac%a6","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=4337","title":{"rendered":"docker-ce-23.0.5-1.el7.x86_64.rpm: [Errno -1] \u8f6f\u4ef6\u5305\u4e0e\u9884\u671f\u4e0b\u8f7d\u7684\u4e0d\u7b26"},"content":{"rendered":"<p>\u4f7f\u7528\u4e86<a href=\"https:\/\/so.csdn.net\/so\/search?q=\u963f\u91cc\u4e91\u670d\u52a1\u5668&amp;spm=1001.2101.3001.7020\">\u963f\u91cc\u4e91\u670d\u52a1\u5668<\/a>ECS\u4e0a\u90e8\u7f72Docker\u7684\u65b9\u6cd5\uff1a<\/p>\n<p><a href=\"https:\/\/help.aliyun.com\/document_detail\/187598.html\">\u90e8\u7f72\u5e76\u4f7f\u7528Docker\uff08CentOS 8\uff09<\/a><\/p>\n<p>\u524d\u9762\u51e0\u6b65\u90fd\u5f88\u987a\u5229\uff0c\u4f7f\u7528\u963f\u91cc\u4e91\u955c\u50cf\u540e\u89e3\u51b3\u4e86\u56fd\u5916\u6e90\u8fde\u63a5\u8d85\u65f6\u7684\u95ee\u9898<\/p>\n<p>\u4f46\u662f\u5728\u6700\u540e\u4e00\u6b65\u5728\u5b89\u88c5docker\u65f6<\/p>\n<pre><code>[root@foo liang]# yum clean all\n\u5df2\u52a0\u8f7d\u63d2\u4ef6\uff1afastestmirror\nRepository base is listed more than once in the configuration\nRepository updates is listed more than once in the configuration\nRepository extras is listed more than once in the configuration\nRepository centosplus is listed more than once in the configuration\n\u6b63\u5728\u6e05\u7406\u8f6f\u4ef6\u6e90\uff1a base docker-ce-stable epel extras nodesource updates\nCleaning up list of fastest mirrors\n\n[root@foo liang]# yum makecache\n\u5df2\u52a0\u8f7d\u63d2\u4ef6\uff1afastestmirror\nRepository base is listed more than once in the configuration\nRepository updates is listed more than once in the configuration\nRepository extras is listed more than once in the configuration\nRepository centosplus is listed more than once in the configuration\nDetermining fastest mirrors\n \\* epel: mirrors.aliyun.com<\/code><\/pre>\n<pre><code>\u4e8b\u52a1\u6982\u8981\n=======================================================================================================================\n\u5b89\u88c5  2 \u8f6f\u4ef6\u5305 (+3 \u4f9d\u8d56\u8f6f\u4ef6\u5305)\n\u5347\u7ea7 82 \u8f6f\u4ef6\u5305\n\u79fb\u9664  2 \u8f6f\u4ef6\u5305\n\u603b\u4e0b\u8f7d\u91cf\uff1a270 M\nIs this ok [y\/d\/N]: y\nDownloading packages:\nNo Presto metadata available for docker-ce-stable\nNo Presto metadata available for updates\n(1\/87): bind-libs-9.11.4-26.P2.el7_9.13.x86_64.rpm                       | 158 kB 00:00:00   \n(2\/87): bind-export-libs-9.11.4-26.P2.el7_9.13.x86_64.rpm                    | 1.1 MB 00:00:01   \n(3\/87): bind-license-9.11.4-26.P2.el7_9.13.noarch.rpm                      | 92 kB 00:00:00   \n(4\/87): bind-utils-9.11.4-26.P2.el7_9.13.x86_64.rpm                       | 262 kB 00:00:00   \n(5\/87): bind-libs-lite-9.11.4-26.P2.el7_9.13.x86_64.rpm                     | 1.1 MB 00:00:01   \n(6\/87): ca-certificates-2022.2.54-74.el7_9.noarch.rpm                      | 911 kB 00:00:00   \n(7\/87): brotli-1.0.9-10.el7.x86_64.rpm                             | 309 kB 00:00:00   \n(8\/87): diffutils-3.3-6.el7_9.x86_64.rpm                            | 322 kB 00:00:01   \n(9\/87): docker-buildx-plugin-0.10.4-1.el7.x86_64.rpm                      | 12 MB 00:00:13   \ndocker-ce-23.0.5-1.el7.x86_64. FAILED                      \nhttps:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/x86_64\/stable\/Packages\/docker-ce-23.0.5-1.el7.x86_64.rpm: [Errno -1] \u8f6f\u4ef6\u5305\u4e0e\u9884\u671f\u4e0b\u8f7d\u7684\u4e0d\u7b26\u3002\u5efa\u8bae\uff1a\u8fd0\u884c yum --enablerepo=docker-ce-stable clean metadata\n\u6b63\u5728\u5c1d\u8bd5\u5176\u5b83\u955c\u50cf\u3002<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.liangliang.org.cn\/wp-content\/uploads\/2023\/04\/post-4337-644ce3b379e6c.png\" alt=\"img\" \/><\/p>\n<p>\u53d1\u73b0 <code>docker-ce.repo<\/code> \u6587\u4ef6\u4e2d\uff0c\u9ed8\u8ba4\u5b89\u88c5\u7684 <code>docker-ce-stable<\/code> \u4e2d\uff0c<code>enabled<\/code> \u503c\u4e0e\u5176\u4ed6\u4ed3\u5e93\u4e0d\u4e00\u81f4\uff0c\u5176\u4ed6\u4ed3\u5e93\u5747\u4e3a <code>0<\/code>\uff0c\u800c <code>docker-ce-stable<\/code> \u4e2d\u7684enabled\u503c\u4e3a <code>1<\/code><\/p>\n<pre><code>vim \/etc\/yum.repos.d\/docker-ce.repo<\/code><\/pre>\n<p>\u6539\u4e3a <code>0<\/code> \u6545\u969c\u6392\u9664<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u4e86\u963f\u91cc\u4e91\u670d\u52a1\u5668ECS\u4e0a\u90e8\u7f72Docker\u7684\u65b9\u6cd5\uff1a \u90e8\u7f72\u5e76\u4f7f\u7528Docker\uff08CentOS 8\uff09 \u524d\u9762\u51e0\u6b65\u90fd\u5f88\u987a\u5229\uff0c\u4f7f\u7528\u963f\u91cc\u4e91\u955c\u50cf\u540e\u89e3\u51b3\u4e86\u56fd\u5916\u6e90\u8fde\u63a5\u8d85\u65f6\u7684\u95ee\u9898 \u4f46\u662f\u5728\u6700\u540e\u4e00\u6b65\u5728\u5b89\u88c5docker\u65f6 [ro&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,75],"tags":[],"class_list":["post-4337","post","type-post","status-publish","format-standard","hentry","category-centos","category-docker"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/4337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4337"}],"version-history":[{"count":1,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/4337\/revisions"}],"predecessor-version":[{"id":4338,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/4337\/revisions\/4338"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}