[RUBY] Error displayed by docker as ERROR: An HTTP request took too long to complete.

problem

ERROR: An HTTP request took too long to complete. Is displayed.

ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).

Cause?

Insufficient memory capacity of EC2?

Solution

Delete all stopped containers

$ docker container prune

Delete all containers at once

$ docker rm -f `docker ps -a -q`

Reboot

$ docker-compose up

Solution!

reference

https://qiita.com/boiyama/items/9972601ffc240553e1f3 https://dawaan.com/docker-for-mac-hung/

comment

If you have any other suggestions or suggestions, please do not hesitate to tell us. Thanking you in advance.

Recommended Posts

Error displayed by docker as ERROR: An HTTP request took too long to complete.
What to do if you get an [An HTTP request took too long to complete.] Error in Docker.
How to request by passing an array to the query with HTTP Client of Ruby
[Java] How to get a request by HTTP communication