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.