91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

解決Centos7安裝docker源問題

發布時間:2020-07-18 15:04:36 來源:網絡 閱讀:2623 作者:Azhouyuhang 欄目:云計算

根據官方文檔:https://docs.docker.com/install/linux/docker-ce/centos/搭建docker?

1.卸載docker舊版本:

sudo yum remove docker \
? ? ? ? ? ? ? ? ? docker-client \
? ? ? ? ? ? ? ? ? docker-client-latest \
? ? ? ? ? ? ? ? ? docker-common \
? ? ? ? ? ? ? ? ? docker-latest \
? ? ? ? ? ? ? ? ? docker-latest-logrotate \
? ? ? ? ? ? ? ? ? docker-logrotate \
? ? ? ? ? ? ? ? ? docker-selinux \
? ? ? ? ? ? ? ? ? docker-engine-selinux \
? ? ? ? ? ? ? ? ? docker-engine\

2.安裝相關工具類:

sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2

3.配置docker倉庫:

sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo

會報以下錯誤: Loaded plugins: fastestmirror adding repo from: https://download.docker.com/linux/centos/docker-ce.repo grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo Could not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/yum.repos.d/docker-ce.repo : [Errno 14] curl#35 - "TCP connection reset by peer

這是由于國內訪問不到docker官方鏡像的緣故?
可以通過aliyun的源來完成:

sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

出現以下內容則表示docker倉庫配置成功:

Loaded plugins: fastestmirror adding repo from: http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo grabbing file http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo repo saved to /etc/yum.repos.d/docker-ce.repo

4.安裝docker

sudo yum install docker-ce

出現以下異常:
Loaded plugins: fastestmirror
base
https://download-stage.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml: [Errno 14] curl#35 - "TCP connection reset by peer"
Trying other mirror.
?One of the configured repositories failed (Docker CE Stable - x86_64),
?and yum doesn't have enough cached data to continue. At this point the only
?safe thing yum can do is fail. There are a few ways to work "fix" this:

? ? ?1. Contact the upstream for the repository and get them to fix the problem.

? ? ?2. Reconfigure the baseurl/etc. for the repository, to point to a working
? ? ? ? upstream. This is most often useful if you are using a newer
? ? ? ? distribution release than is supported by the repository (and the
? ? ? ? packages for the previous distribution release still work).

? ? ?3. Run the command with the repository temporarily disabled
? ? ? ? ? ? yum --disablerepo=docker-ce-stable ...

? ? ?4. Disable the repository permanently, so yum won't use it by default. Yum
? ? ? ? will then just ignore the repository until you permanently enable it
? ? ? ? again or use --enablerepo for temporary usage:

? ? ? ? ? ? yum-config-manager --disable docker-ce-stable
? ? ? ? or
? ? ? ? ? ? subscription-manager repos --disable=docker-ce-stable

? ? ?5. Configure the failing repository to be skipped, if it is unavailable.
? ? ? ? Note that yum will try to contact the repo. when it runs most commands,
? ? ? ? so will have to try and fail each time (and thus. yum will be be much
? ? ? ? slower). If it is a very temporary problem though, this is often a nice
? ? ? ? compromise:

? ? ? ? ? ? yum-config-manager --save --setopt=docker-ce-stable.skip_if_unavailable=true

failure: repodata/repomd.xml from docker-ce-stable: [Errno 256] No more mirrors to try.
https://download-stage.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml: [Errno 14] curl#35 - "TCP connection reset by peer"

[root@localhost yum.repos.d]# systemctl restart docker?
[root@localhost yum.repos.d]# systemctl status docker

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

正阳县| 余干县| 盐城市| 湘潭市| 水城县| 雷波县| 德江县| 孙吴县| 信宜市| 侯马市| 隆安县| 嘉善县| 南木林县| 南昌市| 囊谦县| 潍坊市| 额敏县| 集贤县| 罗山县| 应城市| 平乐县| 郸城县| 清新县| 博兴县| 太和县| 临泉县| 读书| 洛隆县| 西充县| 禹城市| 寻乌县| 邢台县| 曲水县| 绥化市| 宁陕县| 平江县| 玛多县| 邵阳县| 万山特区| 固始县| 延安市|