Are you using the Docker executor or the Machine executor?
As mentioned in the post, the machine executor.
What parent image are you using for your build server?
Could you clarify what exactly this means? Is it relevant for machine executor?
What image is being run with the
docker run command (the
xxx/build:latest )? What is the parent image for
Some custom image we build in a step before, based on
Please update your question to include that information. In the meantime, can you pull this image to your local machine and see if networking is working there?
I know it works on CircleCI because the same code has run successfully on CircleCI before. (as described in my post). What concerns me is that the same code sometimes works and sometimes not, probably depending on some networking conditions on CircleCI.