<div dir="ltr">Hi,<br><br>With ref to LXD issue<a href="https://github.com/lxc/lxd/issues/114"> #114</a> <div><br>There are two ways to implement the default roots.<br><br>1. Initialize within code.<br>Instead of initializing with empty Config Structure at  </div><div><a href="https://github.com/lxc/lxd/blob/master/config.go#L56">https://github.com/lxc/lxd/blob/master/config.go#L56</a><br><br>can  be initialized as </div><div><br><div><span class="" style="white-space:pre">     </span>remotes := map[string]RemoteConfig{</div><div><span class="" style="white-space:pre">                </span>"images": RemoteConfig{"https+registry://<a href="http://registry.linuxcontainers.org">registry.linuxcontainers.org</a>"},</div><div><span class="" style="white-space:pre">               </span>"local":  RemoteConfig{"unix+lxd://var/lib/lxd/socket"},</div><div><span class="" style="white-space:pre">      </span>}</div><div><br></div><div><span class="" style="white-space:pre"> </span>defaultConfig := &Config{TestOption: "",</div><div><span class="" style="white-space:pre">             </span>DefaultRemote: "",</div><div><span class="" style="white-space:pre">               </span>Remotes:       remotes,</div><div><span class="" style="white-space:pre">         </span>ListenAddr:    "80"}</div><div><br></div><div><br></div><br>2. Create a default config file.</div><div>While installation, a default config.yml can be create with default settings.</div><div><br></div><div><div>---</div><div>test-option:</div><div>default-remote:</div><div>remotes:</div><div>  images:</div><div>    addr: https+registry://<a href="http://registry.linuxcontainers.org">registry.linuxcontainers.org</a></div><div>  local:</div><div>    addr: unix+lxd://var/lib/lxd/socket</div><div>listen-addr: 80</div><div><br></div><div><br></div><div>Which approach is better?</div><div><br></div><div><br></div><div>Regards,</div><div>Kunal Kushwaha</div><div><br></div><div><br></div></div></div>