Search code examples
windowsconfigurationsetdocker-daemonrancher-desktop

Rancher Desktop: How to set insecure-repositories on Windows, as set in /etc/docker/daemon.json file


I need to add this for pushing docker images to remote machine. '{ "insecure-registries" : ["10.60.3.4:6000"] }'


Solution

  • The insecure registries can be added via rancher's wsl. Here's a solution that worked for me.

    In Command Prompt or Powershell execute

    wsl -d rancher-desktop -e vi /etc/docker/daemon.json
    

    then add the registry/ies you require like that:

    {
        "insecure-registries": [  
           "url-registry-url"
        ]
    }
    

    Source (besides others): https://github.com/rancher-sandbox/rancher-desktop/discussions/870#discussioncomment-2673125