Step 2: Install a private docker registry
docker run -d -p 5000:5000 --name my-registry registry:latest
Note: If port 5000 is not available on your system, you can choose another port. In this case you also need to adapt the following configuration accordingly.
Configure the local private registry as insecure registry.
In Docker Desktop, go to settings -> Docker engine and edit the json configuration.
Add the registry to the local registries by adding or editing the 'insecure-registries' attribute
"insecure-registries": [
"<hostname>:5000"
]
where hostname is the hostname of your windows pc.
In Rancher Desktop, edit the daemon.json with this command from the command line (you must be able to use "vi"):
> wsl -d rancher-desktop -e vi /etc/docker/daemon.json
Add your own server with the configured port to "insecure-registries":
{
"features": {
"containerd-snapshotter": false
},
"insecure-registries": [
"wdsserver:5000"
]
}
Then restart Rancher Desktop: > rdctl shutdown > rdctl start