Docker在Ubuntu中撰写安装错误'curl:(56)OpenSSL SSL_read:SSL_ERROR_SYSCALL,errno 104' [英] Docker compose install error 'curl: (56) OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104' in Ubuntu

查看:1971
本文介绍了Docker在Ubuntu中撰写安装错误'curl:(56)OpenSSL SSL_read:SSL_ERROR_SYSCALL,errno 104'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Ubuntu 18.04.2 LTS 上安装docker compose.我尝试使用官方链接此处进行安装,并按照给出的Docker Compose文档进行操作,但是当我运行命令

I am trying to install docker compose on the Ubuntu 18.04.2 LTS. I tried installing using the official link here and followed the Docker Compose documentation given, but when i run the command

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 

然后过一会儿就会出现这个错误

then after some time it gives me this error

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   617    0   617    0     0    613      0 --:--:--  0:00:01 --:--:--   613
 24 8280k   24 2056k    0     0    789      0  2:59:06  0:44:27  2:14:39     0

**curl: (56) OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104**

请帮我解决这个问题,我尝试了很多次,但是没有用.

Kindly help me on this i have tried many times but it is not working.

推荐答案

我遇到了同样的问题.我假设您使用的是 Docker文档,它们通常已经过时了.您应该转到 Docker Compose Github .

I had the same problem. I assume that you are using Docker Docs, which are usually outdated. You should go to Docker Compose Github instead.

解决方案

1 -通过按 Ctrl + Alt + T

1 - Open Linux Terminal by pressing Ctrl + Alt + T

2 -安装 curl :

sudo apt install curl

3 -使用以下命令在终端中为用户(在Windows OS中为 admin 之类的用户)打开 root 特权:

3 - Turn on root privileges in terminal for your user (something like admin in Windows OS), with command:

sudo -i

4 -转到 Docker Compose Github .在发行版中,您会找到此代码.在您的Linux终端中运行它.

4 - Go to Docker Compose Github. In releases you will find this code. Run it in your linux terminal.

curl -L https://github.com/docker/compose/releases/download/1.25.1-rc1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

5 -使用以下命令在终端中为用户关闭 root 特权:

5 - Turn off root privileges in terminal for your user, with command:

exit

6 -检查是否使用命令安装了 docker-compose :

6 - Check if docker-compose is installed with command:

docker-compose version

结果:在终端中,您应该看到 docker-compose版本号和其他一些信息.

Outcome: In your terminal, you should see docker-compose version number and some other informations.

这篇关于Docker在Ubuntu中撰写安装错误'curl:(56)OpenSSL SSL_read:SSL_ERROR_SYSCALL,errno 104'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆