Successfully resolved: curl: (35) TCP connection reset by peer

Successfully resolved: curl: (35) TCP connection reset by peer error

When I install Docker-compose on centOS7 and execute the following command:

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

An error occurs:

curl: (35) TCP connection reset by peer

The specific screenshots are as follows:

Insert image description here

Solution:

Execute the command multiple times (if it doesn't work a few times, just create a new terminal and execute it multiple times)

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

The problem was successfully solved, the command was executed successfully, and it is in the downloading status:
Insert image description here
Download successful
Insert image description here

Friends are welcome to discuss. If you have any questions, please leave a comment in the comment area or send a private message. Your messages are welcome!

Guess you like

Origin blog.csdn.net/Myx74270512/article/details/128035590
Recommended