📚 Knowledge Garden

Search

Search IconIcon to open search

embedded daemon response max depth exceeded

Last updated Apr 30, 2025

This error is usually caused by a self referencing docker build.

Take the example:

1
2
FROM ubuntu:latest
RUN apt-get update 

If, when building this image you tag the built image with ubuntu:latest by using the following command:

1
docker build -t ubuntu:latest .

The first build may succeed but subsequent builds will fail.

This error might also be seen when using Docker Compose.

The following docker-compose.yml file when combined with the above Dockerfile will produce the same error as under the hood it will result in the same build command being executed.

1
2
3
4
services:
  application:
      build: .
      image: ubuntu:latest