Gitlab CI docker random fail, after succesfull jobs

Hello guys.
When a job is started , it gets a docker image. While the pipeline is running and all my jobs are succeeding, at a complete random point i get
Preparation failed: Error response from daemon: Get dial tcp: lookup on no such host

I then restarted the CI pipeline and the same thing happened althought a few minutes after.
What is the cause of the problem?