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:
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:
Download successful
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!