Build failed: max depth exceeded

Hi,

at the end of a “successfull build”, i.e. all lines in the Dockerfile executed successfully:

Removing intermediate container 7b69eb5166f8
max depth exceeded

If I remove the RUN commands in the Dockerfile there is no such message.

Any ideas what “max depth exceeded” means?

Regards

getting this too, did you ever resolve?

No, sorry. It was not so important for me. I’ve started from scratch again.

I get this too, and it’s while trying ot edit a file in place; here I’m trying to sed to the a destination file, whether I do it inline "sed -i" or redirect

COPY conf/jenkins.conf /tmp/jenkins.conf
RUN sed "s/JENKINS_FQDN/$JENKINS_FQDN/g" /tmp/jenkins.conf > /etc/nginx/conf.d/jenkins.conf

Did you guys ever get a resolution to this?

Has this problem been resolved?
I would like to know the solution.

I’m having trouble with it happening even after cleaning the environment as docker-compose down.

Oh. I’ve just solved that problem.

It seems that docker-compose down does not make it clean.

You need to use docker image prune -a to be precise.

Thanks to the author of the following article.