adamant-kite-43734
04/15/2024, 12:35 PMclever-umbrella-15166
04/15/2024, 12:35 PMdocker pull <http://abcd.com:5000/your-image-name>
but there was a error that:
/usr/local/bin/docker-credential-rancher-desktop: source: line 5: can't open '/etc/rancher/desktop/credfwd': No such file or directory
(edited)wide-mechanic-33041
04/15/2024, 12:43 PMrdctl shell
terminal?
• Did you set a no_proxy as I am guessing traffic is trying to hairpin through the proxy?
• Try and make sure registry connectivity is working before doing your pull. that also looks like a docker login
issue but not sureclever-umbrella-15166
04/15/2024, 12:54 PMdocker login <http://abcd.com:5000>
, I'm getting the same error:
/usr/local/bin/docker-credential-rancher-desktop: source: line 5: can't open '/etc/rancher/desktop/credfwd': No such file or directory
wide-mechanic-33041
04/15/2024, 12:58 PMclever-umbrella-15166
04/16/2024, 6:31 AMclever-umbrella-15166
04/16/2024, 6:32 AM/etc/conf.d/docker
NO_PROXY="........."
HTTPS_PROXY="http://......."
HTTP_PROXY="http://........"
export HTTP_PROXY
export HTTPS_PROXY
export NO_PROXY
clever-umbrella-15166
04/16/2024, 6:33 AM/etc/docker/daemon.json
clever-umbrella-15166
04/16/2024, 6:34 AMserver: <https://localhost:6443>
clever-umbrella-15166
04/16/2024, 6:35 AMwide-mechanic-33041
04/16/2024, 11:42 AMrdcrtl shell
what is coming up. k8s registry configs are different than docker so what are you trying to setup?clever-umbrella-15166
04/16/2024, 12:02 PMrdcrtl shell
,
The issue was with the vpn I was using becuase of which I was getting errors like server responded with http content on https request
to resolve the issue :
• start rancher desktop without vpn connection
• rdctl shell
• sudo vi /etc/docker/daemon.json
◦ {
◦ "insecure-registries": [
◦ "localhost:5000",
◦ unsecure registries
◦ ],
◦ "features": {
◦ "containerd-snapshotter": false
◦ }
◦ }
• restart Rancher
• rdctl shell
• export these variables
◦ NO_PROXY="localhost,127.0.0.1,<http://xx.xxx.xx.com|xx.xxx.xx.com>"
◦ HTTPS_PROXY="<http://abcd:80>"
◦ HTTP_PROXY="<http://abcd:80>"
◦ export HTTP_PROXY
◦ export HTTPS_PROXY
◦ export NO_PROXY
• Modify Kube config located at <C://User/> %USERPROFILE% /.kube/config
(r*eplacing cluster server IP* https://xx.xx.xx.xx:6443/ with localhost eg:https://localhost:6443 )
• download vpnkit (https://github.com/sakai135/wsl-vpnkit/releases/download/v0.3.7/wsl-vpnkit.tar.gz)
• wsl —import wsl-vpnkit —version 2 $env:USERPROFILE\wsl-vpnkit ~<c://downloaded> path~/wsl-vpnkit.tar.gz
• start wsl -d wsl-vpnkit service wsl-vpnkit start
• Now connect with VPN
• docker login abcd.com:5000
• #u: username
• #p: password
clever-umbrella-15166
04/16/2024, 12:03 PMwide-mechanic-33041
04/16/2024, 12:05 PM