-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker build --pull not working for insecure registry when using buildkit #2030
Labels
Comments
This seems like the same as #1642, which should be fixed in docker 25.0. |
I'm from docker 25.0.0 and this issue is still not fixed 😭 |
Docker 27.3.1 still has the problem... "docker pull my.registry:8082/image:latest" works fine. $ docker build -t image-test .
$ cat /etc/docker/daemon.json
$ docker version
$ docker builder version
OS (fresh install)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Contributing guidelines
I've found a bug and checked that ...
Description
I'm using an insecure registry and I've added the necessary configuration in
/etc/docker/daemon.json
.Furthermore, I'm able to pull images with
However, I can not use images from this registry as base image for
docker build
because it tries to use HTTPS instead of HTTP for pulling images.Expected behaviour
It should also be possible to build images based on images from an insecure registry.
docker build --pull --no-cache -t target .
Actual behaviour
docker build
is not able to pull the necessary image from an insecure registry, because it tries to pull the image using HTTPS. However,docker pull
is able to pull the same image using HTTP.Buildx version
github.com/docker/buildx v0.11.2 9872040
Docker info
Builders list
Configuration
/etc/docker/daemon.json
:Dockerfile
:Command to reproduce the problem:
docker build --pull -t target .
Build logs
Additional info
However the following is working fine:
docker pull example.com/image:latest docker build -t target .
and even the following is working fine:
DOCKER_BUILDKIT=0 docker build --pull -t target .
I haven't had this problem with docker version 24.0.2, that I've installed through https://get.docker.com as well.
The text was updated successfully, but these errors were encountered: