tinkerbell / hook

In-memory Operating System Installation Environment for Executing Tinkerbell Workflows
Apache License 2.0
102 stars 49 forks source link

How to enable docker insecure-registries on OSIE #178

Closed bingzhangdai closed 1 month ago

bingzhangdai commented 1 year ago

I have an internal docker registry which uses HTTP protocol. Whenever we use internal tagged images in Actions, the installation process will get stuck. I then tried to pull the image from the console, it said "http: server gave HTTP resposne to HTTPS client".

Expected Behaviour

can successfully pull the image

Current Behaviour

Error response from daemon

Possible Solution

passing args from server to hook.

Steps to Reproduce (for bugs)

  1. build or retag the action images and push them to local registries
  2. local registries are using http protocol
  3. use these images in action

Context

Your Environment

jacobweinstock commented 1 year ago

Hey @bingzhangdai. Insecure docker registries are supported via the kernel parameter insecure_registries=registry.example.com:5000,second.example.com:5000 (comma-separated). This can be set via the Boots cli flag --extra-kernel-args.