This seems like an old and unresolved Docker error. The workaround that works most of the time is to make a bad step with the random process of creating / deleting files.
RUN touch `echo random.$RANDOM`.txt
<YOUR FAILING STEP>
RUN rm random.*.txt;
source
share