You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered this friction when coming up with a workaround for #368
What happened:
I wanted to use a custom base image which I built locally, so I started a local registry[1] with no TLS. In my .ko.yaml I specified the base image using my hostname (dev-jbasseri).
defaultBaseImage: dev-jbasseri:5000/base:0.1
And I got this error:
Error: failed to publish images: error building "ko://purestorage.com/harbormaster/volume/cmd/manager": Get "https://dev-jbasseri:5000/v2/": http: server gave HTTP response to HTTPS client
I re-tagged the image as localhost:5000/base:0.1 and then ko worked normally.
The --insecure-registry flag will skip TLS verification, but it will not skip TLS entirely. So maybe the correct answer here is to use a self-signed cert with my local registry.
Another perspective is that I should just use localhost instead of my hostname.
[1] docker run -d -p 5000:5000 --restart=always --name registry registry:2
The text was updated successfully, but these errors were encountered:
I encountered this friction when coming up with a workaround for #368
What happened:
I wanted to use a custom base image which I built locally, so I started a local registry[1] with no TLS. In my
.ko.yaml
I specified the base image using my hostname (dev-jbasseri).And I got this error:
I re-tagged the image as
localhost:5000/base:0.1
and then ko worked normally.The
--insecure-registry
flag will skip TLS verification, but it will not skip TLS entirely. So maybe the correct answer here is to use a self-signed cert with my local registry.Another perspective is that I should just use
localhost
instead of my hostname.[1]
docker run -d -p 5000:5000 --restart=always --name registry registry:2
The text was updated successfully, but these errors were encountered: