---
# System prepended metadata

title: CentOS 6.10 install docker
tags: [docker, linux, CentOS]

---

# CentOS 6.x 用 yum 安裝 docker
###### tags: `linux` `CentOS` `docker`
> https://medium.com/@zihansyu/centos-6-x-%E5%AE%89%E8%A3%9Ddocker-9e61354fd2ae

原本嘗試用此篇教學在 CentOS 6.10 安裝 docker
但yum一直無法使用於是找了另外一篇。

Docker 雖支持 64 位 CentOS，但官方文件上僅有 CentOS 7、CentOS 8、CentOS 9 的安裝說明，不包含 CentOS 6。可參考 https://docs.docker.com/engine/install/centos/。

首先嘗試使用 [How To Install Docker on CentOS 6](https://www.liquidweb.com/kb/how-to-install-docker-on-centos-6/) 提供的方法，但第一步[下載套件的網址](http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm)已404失效。於是想到用 [epel 套件庫](https://docs.fedoraproject.org/en-US/epel/) 來更新也許可行，但說明依然只有到 CentOS 7，決定硬著頭皮裝看看
```=$
$ yum install epel-release
```
```
Loaded plugins: fastestmirror, security
Setting up Install Process
Repo red-hat-enterprise-linux-scalable-file-system-for-rhel-6-entitlement-rpms forced skip_if_unavailable=True due to: /etc/rhsm/ca/redhat-uep.pem
Repo red-hat-enterprise-linux-scalable-file-system-for-rhel-6-entitlement-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/11300387955690106.pem
Repo red-hat-enterprise-linux-scalable-file-system-for-rhel-6-entitlement-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/key.pem
Loading mirror speeds from cached hostfile
https://cdn.redhat.com/content/dist/rhel/entitlement-6/releases/6/x86_64/scalablefilesystem/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 77 - "Problem with the SSL CA cert (path? access rights?)"
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================
 Package                   Arch                Version            Repository           Size
============================================================================================
Installing:
 epel-release              noarch              6-8                extras               14 k

Transaction Summary
============================================================================================
Install       1 Package(s)

Total download size: 14 k
Installed size: 22 k
Is this ok [y/N]: y
Downloading Packages:
epel-release-6-8.noarch.rpm                                          |  14 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : epel-release-6-8.noarch                                                  1/1
  Verifying  : epel-release-6-8.noarch                                                  1/1

Installed:
  epel-release.noarch 0:6-8

Complete!
```

yum更新後下一步

```=$
$ yum -y install docker-io
```
在docker的環節重複嘗試都失敗。

還在尋找方法...
