{"id":3004,"date":"2024-06-27T16:38:35","date_gmt":"2024-06-27T08:38:35","guid":{"rendered":"https:\/\/www.tra56.com\/?p=3004"},"modified":"2024-06-27T16:38:35","modified_gmt":"2024-06-27T08:38:35","slug":"3004","status":"publish","type":"post","link":"https:\/\/www.tra56.com\/3004.html","title":{"rendered":"CentOS7 docker.repo \u7528\u963f\u91cc\u4e91Docker Yum\u6e90"},"content":{"rendered":"

yum\u5b89\u88c5\u8f6f\u4ef6\u7684\u65f6\u5019\u7ecf\u5e38\u51fa\u73b0\u627e\u4e0d\u5230\u955c\u50cf\u7684\u60c5\u51b5<\/span><\/p>\n

https:\/\/download.docker.com\/linux\/centos\/7\/x86_64\/stable\/repodata\/repomd.xml: [Errno 12] Timeout on<\/pre>\n

\u89e3\u51b3\u65b9\u6cd5\uff1a\u66f4\u65b0\/etc\/yum.repos.d\u76ee\u5f55\u4e0b\u7684docker.repo\u6587\u4ef6\u5185\u5bb9\uff0c\u4f7f\u7528\u963f\u91cc\u7684\u955c\u50cf\u6e90<\/span><\/p>\n

[docker-ce-stable]\r\nname=Docker CE Stable - $basearch\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/$basearch\/stable\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-stable-debuginfo]\r\nname=Docker CE Stable - Debuginfo $basearch\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/debug-$basearch\/stable\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-stable-source]\r\nname=Docker CE Stable - Sources\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/source\/stable\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-edge]\r\nname=Docker CE Edge - $basearch\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/$basearch\/edge\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-edge-debuginfo]\r\nname=Docker CE Edge - Debuginfo $basearch\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/debug-$basearch\/edge\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-edge-source]\r\nname=Docker CE Edge - Sources\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/source\/edge\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-test]\r\nname=Docker CE Test - $basearch\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/$basearch\/test\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-test-debuginfo]\r\nname=Docker CE Test - Debuginfo $basearch\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/debug-$basearch\/test\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-test-source]\r\nname=Docker CE Test - Sources\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/source\/test\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-nightly]\r\nname=Docker CE Nightly - $basearch\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/$basearch\/nightly\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-nightly-debuginfo]\r\nname=Docker CE Nightly - Debuginfo $basearch\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/debug-$basearch\/nightly\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg\r\n\r\n[docker-ce-nightly-source]\r\nname=Docker CE Nightly - Sources\r\nbaseurl=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/7\/source\/nightly\r\nenabled=0\r\ngpgcheck=1\r\ngpgkey=https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/gpg<\/pre>\n

\u5982\u679c\u662fCentOS-Base.repo\uff0c\u5219\u6539\u6210<\/span><\/span><\/p>\n

# CentOS-Base.repo\r\n#\r\n# The mirror system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick mirrors that are updated to and\r\n# geographically close to the client.  You should use this for CentOS updates\r\n# unless you are manually picking other mirrors.\r\n#\r\n# If the mirrorlist= does not work for you, as a fall back you can try the\r\n# remarked out baseurl= line instead.\r\n#\r\n#\r\n\r\n[base]\r\nname=CentOS-$releasever - Base - mirrors.aliyun.com\r\nfailovermethod=priority\r\nbaseurl=http:\/\/mirrors.aliyun.com\/centos\/$releasever\/os\/$basearch\/\r\n        http:\/\/mirrors.aliyuncs.com\/centos\/$releasever\/os\/$basearch\/\r\n        http:\/\/mirrors.cloud.aliyuncs.com\/centos\/$releasever\/os\/$basearch\/\r\ngpgcheck=1\r\ngpgkey=http:\/\/mirrors.aliyun.com\/centos\/RPM-GPG-KEY-CentOS-7\r\n\r\n#released updates\r\n[updates]\r\nname=CentOS-$releasever - Updates - mirrors.aliyun.com\r\nfailovermethod=priority\r\nbaseurl=http:\/\/mirrors.aliyun.com\/centos\/$releasever\/updates\/$basearch\/\r\n        http:\/\/mirrors.aliyuncs.com\/centos\/$releasever\/updates\/$basearch\/\r\n        http:\/\/mirrors.cloud.aliyuncs.com\/centos\/$releasever\/updates\/$basearch\/\r\ngpgcheck=1\r\ngpgkey=http:\/\/mirrors.aliyun.com\/centos\/RPM-GPG-KEY-CentOS-7\r\n\r\n#additional packages that may be useful\r\n[extras]\r\nname=CentOS-$releasever - Extras - mirrors.aliyun.com\r\nfailovermethod=priority\r\nbaseurl=http:\/\/mirrors.aliyun.com\/centos\/$releasever\/extras\/$basearch\/\r\n        http:\/\/mirrors.aliyuncs.com\/centos\/$releasever\/extras\/$basearch\/\r\n        http:\/\/mirrors.cloud.aliyuncs.com\/centos\/$releasever\/extras\/$basearch\/\r\ngpgcheck=1\r\ngpgkey=http:\/\/mirrors.aliyun.com\/centos\/RPM-GPG-KEY-CentOS-7\r\n\r\n#additional packages that extend functionality of existing packages\r\n[centosplus]\r\nname=CentOS-$releasever - Plus - mirrors.aliyun.com\r\nfailovermethod=priority\r\nbaseurl=http:\/\/mirrors.aliyun.com\/centos\/$releasever\/centosplus\/$basearch\/\r\n        http:\/\/mirrors.aliyuncs.com\/centos\/$releasever\/centosplus\/$basearch\/\r\n        http:\/\/mirrors.cloud.aliyuncs.com\/centos\/$releasever\/centosplus\/$basearch\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=http:\/\/mirrors.aliyun.com\/centos\/RPM-GPG-KEY-CentOS-7\r\n\r\n#contrib - packages by Centos Users\r\n[contrib]\r\nname=CentOS-$releasever - Contrib - mirrors.aliyun.com\r\nfailovermethod=priority\r\nbaseurl=http:\/\/mirrors.aliyun.com\/centos\/$releasever\/contrib\/$basearch\/\r\n        http:\/\/mirrors.aliyuncs.com\/centos\/$releasever\/contrib\/$basearch\/\r\n        http:\/\/mirrors.cloud.aliyuncs.com\/centos\/$releasever\/contrib\/$basearch\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=http:\/\/mirrors.aliyun.com\/centos\/RPM-GPG-KEY-CentOS-7<\/pre>\n

\u6216\u8005<\/span><\/span><\/p>\n

wget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo<\/pre>\n

<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

yum\u5b89\u88c5\u8f6f\u4ef6\u7684\u65f6\u5019\u7ecf\u5e38\u51fa\u73b0\u627e\u4e0d\u5230\u955c\u50cf\u7684\u60c5\u51b5 https:\/\/download.docker.com\/linu […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[115,11],"tags":[],"class_list":["post-3004","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux"],"_links":{"self":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/3004"}],"collection":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/comments?post=3004"}],"version-history":[{"count":1,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/3004\/revisions"}],"predecessor-version":[{"id":3005,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/3004\/revisions\/3005"}],"wp:attachment":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/media?parent=3004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/categories?post=3004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/tags?post=3004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}