Connection failed while fetching the image from debian

I am running my pipeline sometimes it fails to fetch debain lib and getting connection failed issue and getting like
Error: Job failed : command terminated with exit code 100
Sometimes pipeline passes without any changes i am still confused why gitlab is acting like weird sometimes.

My docker file
FROM debian: stretch-slim
RUN apt-get update
&& apt-get install -qy --no-install-recommends
&& apt-get -y auto-remove \