bored-planet-1228
01/09/2023, 3:01 AMfast-garage-66093
01/09/2023, 6:49 AMbored-planet-1228
01/09/2023, 6:49 AM> nerdctl pull alpine
INFO[0000] trying next host error="failed to do request: Head \"<https://registry-1.docker.io/v2/library/alpine/manifests/latest>\": proxyconnect tcp: dial tcp 127.0.0.1:3128: connect: connection refused" host=<http://registry-1.docker.io|registry-1.docker.io>
ERRO[0000] server "<http://docker.io|docker.io>" does not seem to support HTTPS error="failed to resolve reference \"<http://docker.io/library/alpine:latest\|docker.io/library/alpine:latest\>": failed to do request: Head \"<https://registry-1.docker.io/v2/library/alpine/manifests/latest>\": proxyconnect tcp: dial tcp 127.0.0.1:3128: connect: connection refused"
INFO[0000] Hint: you may want to try --insecure-registry to allow plain HTTP (if you are in a trusted network)
FATA[0000] failed to resolve reference "<http://docker.io/library/alpine:latest|docker.io/library/alpine:latest>": failed to do request: Head "<https://registry-1.docker.io/v2/library/alpine/manifests/latest>": proxyconnect tcp: dial tcp 127.0.0.1:3128: connect: connection refused
Error: exit status 1
`fast-garage-66093
01/09/2023, 6:50 AMbored-planet-1228
01/09/2023, 6:51 AMfast-garage-66093
01/09/2023, 6:52 AM$ curl <https://registry-1.docker.io/v2/library/alpine/manifests/latest>
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"library/alpine","Action":"pull"}]}]}
bored-planet-1228
01/09/2023, 6:53 AM{
"errors": [
{
"code": "UNAUTHORIZED",
"message": "authentication required",
"detail": [
{
"Type": "repository",
"Class": "",
"Name": "library/alpine",
"Action": "pull"
}
]
}
]
}
fast-garage-66093
01/09/2023, 6:53 AM$ rdctl shell curl <https://registry-1.docker.io/v2/library/alpine/manifests/latest>
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"library/alpine","Action":"pull"}]}]}
bored-planet-1228
01/09/2023, 6:53 AMfast-garage-66093
01/09/2023, 6:54 AMrdctl shell ...
bored-planet-1228
01/09/2023, 6:54 AM> rdctl shell curl <https://registry-1.docker.io/v2/library/alpine/manifests/latest>
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"library/alpine","Action":"pull"}]}]}
fast-garage-66093
01/09/2023, 6:56 AMbored-planet-1228
01/09/2023, 6:56 AMfast-garage-66093
01/09/2023, 6:57 AMbored-planet-1228
01/09/2023, 6:58 AMfast-garage-66093
01/09/2023, 6:58 AMrdctl
shows that the directory is on the PATH
bored-planet-1228
01/09/2023, 6:59 AMfast-garage-66093
01/09/2023, 7:00 AMbored-planet-1228
01/09/2023, 7:00 AMfast-garage-66093
01/09/2023, 7:03 AMPATH
for zsh
, but not for bash
. You can just mute that diagnostic, if it is not relevant to you.bored-planet-1228
01/09/2023, 7:03 AMfast-garage-66093
01/09/2023, 7:04 AMzsh -i -c "echo $PATH"
to check the PATHbored-planet-1228
01/09/2023, 7:06 AM.zshrc
is perhaps this bit:
export WASMTIME_HOME="$HOME/.wasmtime"
export RANCHER_HOME="$HOME/.rd"
export PATH="$RANCHER_BIN/bin:$WASMTIME_HOME/bin:$PATH"
exec fish -l
And as for fish, because I usually launch that directly if using iTerm2, is done with:
fish_add_path ~/.rd/bin
, which just adds that to the paths globally on the user account for me.> zsh -i -c "echo $PATH"
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
exec fish
line.fast-garage-66093
01/09/2023, 7:07 AMbored-planet-1228
01/09/2023, 7:07 AMfast-garage-66093
01/09/2023, 7:07 AMerror="failed to do request: Head \"<https://registry-1.docker.io/v2/library/alpine/manifests/latest>\": proxyconnect tcp: dial tcp 127.0.0.1:3128: connect: connection refused" host=<http://registry-1.docker.io|registry-1.docker.io>
bored-planet-1228
01/09/2023, 7:08 AMfast-garage-66093
01/09/2023, 7:09 AMif [ -f /usr/local/openresty/nginx/conf/image-allow-list.conf ]; then
export HTTPS_PROXY=<http://127.0.0.1:3128>
fi
bored-planet-1228
01/09/2023, 7:10 AMfast-garage-66093
01/09/2023, 7:10 AM$ rdctl shell ls -l /usr/local/openresty/nginx/conf/image-allow-list.conf
ls: /usr/local/openresty/nginx/conf/image-allow-list.conf: No such file or directory
Error: exit status 1
bored-planet-1228
01/09/2023, 7:11 AM> rdctl shell cat /usr/local/openresty/nginx/conf/image-allow-list.conf
"~*^registry\.k8s\.io(:443)?/v2/pause/manifests/[^/]+$" 0;
"~*^[^./]+\.pkg\.dev(:443)?/v2/.+/manifests/[^/]+$" 0;
"~*^registry-1\.docker\.io(:443)?/v2/rancher/mirrored-pause/manifests/[^/]+$" 0;
fast-garage-66093
01/09/2023, 7:12 AMnerdctl pull alpine
will start workingbored-planet-1228
01/09/2023, 7:12 AMfast-garage-66093
01/09/2023, 7:13 AMrdctl shell sudo rm -f /usr/local/openresty/nginx/conf/image-allow-list.conf
bored-planet-1228
01/09/2023, 7:13 AMfast-garage-66093
01/09/2023, 7:13 AM$ rdctl shell ls -l /usr/local/openresty/nginx/conf/image-allow-list.conf
ls: /usr/local/openresty/nginx/conf/image-allow-list.conf: No such file or directory
Error: exit status 1
bored-planet-1228
01/09/2023, 7:14 AMfast-garage-66093
01/09/2023, 7:14 AMbored-planet-1228
01/09/2023, 7:15 AMfast-garage-66093
01/09/2023, 7:16 AMnerdctl
working again by deleting the filebored-planet-1228
01/09/2023, 7:23 AMfast-garage-66093
01/10/2023, 5:41 AMPATH
management setting, but there are others as well.faint-lizard-84272
02/09/2023, 11:12 AM❯ nerdctl pull debian:11
INFO[0000] trying next host error="failed to do request: Head \"<https://registry-1.docker.io/v2/library/debian/manifests/11>\": proxyconnect tcp: dial tcp 127.0.0.1:3128: connect: connection refused" host=<http://registry-1.docker.io|registry-1.docker.io>
ERRO[0000] server "<http://docker.io|docker.io>" does not seem to support HTTPS error="failed to resolve reference \"<http://docker.io/library/debian:11\|docker.io/library/debian:11\>": failed to do request: Head \"<https://registry-1.docker.io/v2/library/debian/manifests/11>\": proxyconnect tcp: dial tcp 127.0.0.1:3128: connect: connection refused"
INFO[0000] Hint: you may want to try --insecure-registry to allow plain HTTP (if you are in a trusted network)
FATA[0000] failed to resolve reference "<http://docker.io/library/debian:11|docker.io/library/debian:11>": failed to do request: Head "<https://registry-1.docker.io/v2/library/debian/manifests/11>": proxyconnect tcp: dial tcp 127.0.0.1:3128: connect: connection refused
Error: exit status 1
❯ rdctl shell sudo ls -l /usr/local/openresty/nginx/conf/image-allow-list.conf
-rw-r--r-- 1 alvaro alvaro 195 Feb 9 10:59 /usr/local/openresty/nginx/conf/image-allow-list.conf
❯ rdctl shell sudo rm -f /usr/local/openresty/nginx/conf/image-allow-list.conf
❯ nerdctl pull debian:11
<http://docker.io/library/debian:11|docker.io/library/debian:11>: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:43ef0c6c3585d5b406caa7a0f232ff5a19c1402aeb415f68bcd1cf9d10180af8: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:749383b0a6d17fb745d397b108d2ea38b5832226586b25c9f5cf7fcde24458ab: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:54e726b437fbb2dd7b43e4dd5cd79b0181e96a22849b7fc2ffe934fac2d65440: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:1e4aec178e0864db93a6f97a20bde3445871a4562c1801185eca1238d3a0e80d: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 7.1 s