-
|
Hello, I used a local image when trying to build an image using docker buildx build, but Docker still tried to find this image on Docker Hub. docker build -t aaa:bbb -f model-infer/docker/Dockerfile-xx-ci-xxxx-release-cache .
[+] Building 30.0s (2/2) FINISHED docker-container:mybuilder-v1.1.0
=> [internal] load build definition from Dockerfile-xx-ci-gpustack-release-cache 0.0s
=> => transferring dockerfile: 1.31kB 0.0s
=> ERROR [internal] load metadata for docker.io/library/abc-dev:v2-4 30.0s
------
> [internal] load metadata for docker.io/library/abc-dev:v2-4:
------
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Dockerfile-xx-ci-gpustack-release-cache:1
--------------------
1 | >>> FROM abc-dev:v2-4 AS abc-install
2 |
3 | ENV PIPX_LOCAL_VENVS=/root/.local/share/pipx/venvs
--------------------
ERROR: failed to solve: abc-dev:v2-4: failed to resolve source metadata for docker.io/library/abc-dev:v2-4: failed to do request: Head "https://registry-1.docker.io/v2/library/abc-dev/manifests/v2-4": dial tcp 199.59.148.6:443: i/o timeoutThe dockerfile likes this: FROM abc-dev:v2-4 AS abc-install
ENV PIPX_LOCAL_VENVS=/root/.local/share/pipx/venvs
...and i use this command to build a image: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The problem may occur in docker buildkit, which may be caused by the BuildKit container not having access to dockerhub. For those who later viewed this issue, please try setting the environment variable: DOCKER_SULLDKIT=1 to avoid running with the build container. |
Beta Was this translation helpful? Give feedback.
The problem may occur in docker buildkit, which may be caused by the BuildKit container not having access to dockerhub. For those who later viewed this issue, please try setting the environment variable: DOCKER_SULLDKIT=1 to avoid running with the build container.