docker install
Posted xiyu311
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker install相关的知识,希望对你有一定的参考价值。
yum install
if has error ,no package avaiable , install epel first
meet this error
解决方法: 一句话:把/etc/yum.repos.d/epel.repo,文件第3行注释去掉,把第四行注释掉。具体如下:
打开/etc/yum.repos.d/epel.repo,将
- [epel]
- name=Extra Packages for Enterprise Linux 6 - $basearch
- #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
- mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
修改为
- [epel]
- name=Extra Packages for Enterprise Linux 6 - $basearch
- baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
- #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
再清理源,重新安装
- yum clean all
- yum install -y 需要的包
install docker
new error SSL CA Cert
For all repos, you can add the following to "/etc/yum.conf":
sslverify=false
error container-selinux >2.9
yum install container-selinux
https://getstart.blog/2018/03/24/docker-ce-installation-on-red-hat-7/
以上是关于docker install的主要内容,如果未能解决你的问题,请参考以下文章
markdown [Docker] Docker片段列表和命令#linux #docker #snippets