img icon indicating copy to clipboard operation
img copied to clipboard

Not build from Dockerfile with insecure registry

Open DmitriyMurzin opened this issue 6 years ago • 4 comments

IMG not build from Dockerfile with insecure registry in section FROM

Dockerfile: FROM http://registry.local.com:5000/glassfish-app:88

Error: failed to solve: invalid reference format

or

Dockerfile: FROM registry.local.com:5000/glassfish-app:88

Error:

 => ERROR docker-image://registry.local.com:5000/glassfish-app:88 
failed to solve: failed to do request: Head https://registry.local.com:5000/v2/glassfish-app/manifests/88: http: server gave HTTP response to HTTPS client

DmitriyMurzin avatar Jun 15 '18 12:06 DmitriyMurzin

Can you not add self signed certs, we have info in the docs :) insecure is v bad

jessfraz avatar Jun 15 '18 12:06 jessfraz

Im love insecure local registry!((

DmitriyMurzin avatar Jun 15 '18 12:06 DmitriyMurzin

@jessfraz I would love to see --insecure-registry flags on build and pull too! It's especially helpful for local development and testing when I don't want to put nginx or something else in front of the registry to serve https.

ekristen avatar Jan 28 '19 21:01 ekristen

I agree, in local development/testing generating self signed certs is an overhead.

Constantin07 avatar May 12 '21 19:05 Constantin07