Private registry

I’m trying to pull a docker image from a private registry from a k3s node based on rancher/k3s

crictl pull
FATA[2020-05-10T19:43:00.869192875Z] pulling image failed: rpc error: code = Unknown desc = failed to resolve image "": no available registry endpoint: failed to do request: Head http: server gave HTTP response to HTTPS client

I added a config.toml.tmpl with the following content

path = "/var/lib/rancher/k3s/agent/containerd"

stream_server_address = "a7d4611f09e0"
stream_server_port = "10010"
    bin_dir = "/bin"
    conf_dir = "/var/lib/rancher/k3s/agent/etc/cni/net.d
    endpoint = [""]
    endpoint = [""]"

but this does not change the result.

If I mount the file during the container start in the volumes section as
- ./config.toml.tmpl:/var/lib/rancher/k3s/agent/etc/containerd/config.toml.tmpl
the container is not even starting