Have you tried my suggestions in my previous comments?
In addition to those, please, try the build without Docker Compose only with the “docker build” command and with buildkit turned off
DOCKER_BUILDKIT=0 docker build . -t IMAGENAME
Note that this is just an example command. The important part that you should try is starting the build command with DOCKER_BUILDKIT=0
. Depending on your docker version Docker will warn you that legacy build is deprecated, but I would like to test a theory.
Can you also share the output of the following commands?
docker info
docker version
Update
You have a COPY rootfs/ /
line in your Dockerfile. What is in the rootfs folder? Do you overwrite something that is required for name resolution?
Note: It is usually recommended to share dockerfiles and compose files here too instead of referring to another forum. We don’t controll those forums and sites, topics can disappear and not everyone likes to follow external links.
Update 2
I found your new topc. Let’s continue it there then…