Network is Unreachable

We have any problems with download Magento 2 composer modules on CircleCI. Apparently an network error. This error is intermittent, when use rebuild option sometimes happens sometimes not.

Error examples:

Error response from daemon: invalid registry endpoint. Unable to ping registry endpoint

v2 ping attempt failed with error: dial tcp: lookup on dial udp connect: network is unreachable