I have 2 containers defined in docker-compose.yml and a Dockerfile for my app. I want to be able to build the image locally even when I don’t have internet connection. Looking at docker compose up --help
, I see the --pull never
option. But it’s still trying to check for updates of the base image I’m using in my Dockerfile.
So the command I’m running is docker compose up -d --build --pull never
And the error is:
<code>failed to solve: eclipse-temurin:21.0.4_7-jre-ubi9-minimal: failed to resolve source metadata for docker.io/library/eclipse-temurin:21.0.4_7-jre-ubi9-minimal: failed to do request: Head "https://registry-1.docker.io/v2/library/eclipse-temurin/manifests/21.0.4_7-jre-ubi9-minimal": dial tcp: lookup registry-1.docker.io on {IP}: no such host
</code>
<code>failed to solve: eclipse-temurin:21.0.4_7-jre-ubi9-minimal: failed to resolve source metadata for docker.io/library/eclipse-temurin:21.0.4_7-jre-ubi9-minimal: failed to do request: Head "https://registry-1.docker.io/v2/library/eclipse-temurin/manifests/21.0.4_7-jre-ubi9-minimal": dial tcp: lookup registry-1.docker.io on {IP}: no such host
</code>
failed to solve: eclipse-temurin:21.0.4_7-jre-ubi9-minimal: failed to resolve source metadata for docker.io/library/eclipse-temurin:21.0.4_7-jre-ubi9-minimal: failed to do request: Head "https://registry-1.docker.io/v2/library/eclipse-temurin/manifests/21.0.4_7-jre-ubi9-minimal": dial tcp: lookup registry-1.docker.io on {IP}: no such host