docker-library / docker

Docker Official Image packaging for Docker
Apache License 2.0
1.14k stars 582 forks source link

Questions about docker build #502

Closed haitang5445 closed 3 months ago

haitang5445 commented 3 months ago

docker version: 26.1.4

I have configured /etc/docker/daemon.json insecure-registries: 192.168.1.100

now I can docker pull http registries

but when I used docker build From 192.168.1.100/xxx/base-image ,It does tell me that the link is https://192.168.1.100/v2..... tcp 192.168.1.100:443: connect: connection refused

LaurentGoderre commented 3 months ago

Are you sure your registry is available on https?

tianon commented 3 months ago

This repository contains the source for the docker Docker Official Image, https://hub.docker.com/_/docker, and is not a general resource for running Docker.

You can ask for help in the Docker Community Slack. If you are not already a member of the Docker Community Slack, you can use this link to join. You can find more support options at Docker Support.

When you do ask for help, I would recommend including more detail about what you are trying to do, what commands you are running, and what errors are being reported.

(in general, I don't think insecure-registries automatically implies port 80 instead of 443, but I could be mis-remembering the implementation details)

Good luck!