forgejo runners(arm64): dind registries need --insecure-registry for the Pi's WG address
First post-cutover deploy-site run (task 1732) built the image and then died pushing it: docker only treats 127.0.0.0/8 as insecure by default, so 'Get "https://10.10.0.1:5000/v2/": http: server gave HTTP response to HTTPS client'. Flag the daemon, not the job image, on both arm64 runners so no workflow needs to know.
This commit is contained in:
parent
c2eb2b2fa3
commit
0a97d9305f
2 changed files with 12 additions and 2 deletions
|
|
@ -46,7 +46,12 @@ spec:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 &
|
# --insecure-registry: the Pi registry is plain HTTP on the WG
|
||||||
|
# hub IP. Docker only treats 127.0.0.0/8 as insecure by default,
|
||||||
|
# so without this `docker push 10.10.0.1:5000/...` from a job
|
||||||
|
# fails with "server gave HTTP response to HTTPS client".
|
||||||
|
dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 \
|
||||||
|
--insecure-registry=10.10.0.1:5000 &
|
||||||
pid=$!
|
pid=$!
|
||||||
i=0
|
i=0
|
||||||
while [ "$i" -lt 30 ]; do
|
while [ "$i" -lt 30 ]; do
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,12 @@ spec:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 &
|
# --insecure-registry: the Pi registry is plain HTTP on the WG
|
||||||
|
# hub IP. Docker only treats 127.0.0.0/8 as insecure by default,
|
||||||
|
# so without this `docker push 10.10.0.1:5000/...` from a job
|
||||||
|
# fails with "server gave HTTP response to HTTPS client".
|
||||||
|
dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 \
|
||||||
|
--insecure-registry=10.10.0.1:5000 &
|
||||||
pid=$!
|
pid=$!
|
||||||
i=0
|
i=0
|
||||||
while [ "$i" -lt 30 ]; do
|
while [ "$i" -lt 30 ]; do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue