安装docker
来源:互联网 发布:太平洋网络股票 编辑:程序博客网 时间:2024/06/05 02:20
curl -sSL https://get.docker.com|sh
报错:unkonwn host
解决:修改dns解析
[root@localhost ~]# vi /etc/resolv.confsearch localdomainnameserver 4.4.4.4~
再次运行
curl -sSL https://get.docker.com|sh
报错:
curl: (35) error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
解决:升级curl至7.55.1
再次运行
curl -sSL https://get.docker.com|sh
报错:
curl: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
解决:
[root@localhost lib]# vi /etc/ld.so.confinclude ld.so.conf.d/*.conf^M/usr/local/lib/usr/lib~
再次运行
curl -sSL https://get.docker.com|sh
报错:
curl:(35)error:14077410:SSLroutines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
解决:
升级OpenSSL库
wget https://www.openssl.org/source/old/1.0.1/openssl-1.0.1.tar.gz报错:cannot verify www.openssl.org's certificate, issued by `/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3':Unable to locally verify the issuer's authority.To connect to www.openssl.org insecurely, use `--no-check-certificate'.Unable to establish SSL connection.解决:加上--no-check-certificate参数即可wget --no-check-certificate https://www.openssl.org/source/openssl-1.1.0e.tar.gztar xvf openssl-1.0.1.tar.gzcd openssl-1.0.1./config --prefix=/usr/local/opensslmake && make installmv /usr/bin/openssl /usr/bin/openssl.bakmv /usr/include/openssl /usr/include/openssl.bakln -s /usr/local/openssl/bin/openssl /usr/bin/opensslln -s /usr/local/openssl/include/openssl /usr/include/opensslecho "/usr/local/openssl/lib" /etc/ld.so.conf/sbin/ldconfig -vopenssl version -a
OpenSSL 升级为 1.0.1 版本
运行
curl -sSL https://get.docker.com|sh
还是报 handshake failure错误
于是到,https://curl.haxx.se/ca/cacert.pem下载最新的CA ,重新编译curl进Curl,cacert.pem是从https://curl.haxx.se/ca/cacert.pem下载下来的。/etc/pki/tls/certs/ca-bundle.crt是目标位置。
./configure --disable-shared --prefix=/usr/local/curl --with-ssl=/usr/local/openssl/ --with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt --with-ca-path=cacert.pem
之后还是不行,重新编译完curl后/usr/local下才有了curl,于是
/usr/local/curl/bin/curl -sSL https://get.docker.com|sh
才ok,墙裂怀疑是这一步的原因。
然后运行成功了,安装失败了
# Executing docker install script, commit: 716f7caEither your platform is not easily detectable or is not supported by thisinstaller script.Please visit the following URL for more detailed installation instructions:https://docs.docker.com/engine/installation/
我去https://docs.docker.com/engine/installation/ 看了一下
这台测试机的版本是:RHEL 5.5 64bit
[root@localhost curl-7.55.1]# lsb_release -aLSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: EnterpriseEnterpriseServerDescription: Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)Release: 5.5Codename: Carthage
但是!
去死吧!
那我这两天不都白做了?!
阅读全文
0 0
- docker--docker安装
- docker-centos安装docker
- Docker-4.安装Docker
- [docker]安装docker
- Docker----CentOS Docker 安装
- docker安装
- docker-安装
- docker安装
- 安装Docker
- docker 安装
- docker安装
- Docker安装
- docker安装
- docker安装
- docker 安装
- Docker安装
- Docker安装
- docker安装
- online learning 资料
- 滚动条监听-懒加载
- 习题8.1 银行排队问题之单队列多窗口服务
- Redis与Memcached的比较
- BZOJ 1084 [SCOI 2005] DP 解题报告
- 安装docker
- php cgi 模式下 获取不到 $argv 解决方案
- c# 匿名方法
- 欢迎使用CSDN-markdown编辑器
- PRM路径规划算法
- 从《我的前半生》看项目经理如何年入百万—光环国际PMP
- java的递归IO读取操作
- Java学习第二课
- Fresco解析 (初始化)