lunes, 13 de enero de 2025

Developing in devcontainer: How to access local network of host

 To connect your devcontainer to the local network, you must consider use runArgs!!

  1. Edit .devcontainer/devcontainer.json and add "--network=host" to the runArgs array
  2. Rebuild your dev container (command palette → Remote Containers: Rebuild Container)
  3. (re)Start Home Assistant (command palette → Tasks: Run Task → Run Home Assistant Core)

Your dev container should then be connected to your host network.

 

More about...

https://containers-dev.translate.goog/implementors/json_reference/?_x_tr_sl=en&_x_tr_tl=es&_x_tr_hl=es&_x_tr_pto=tc

No hay comentarios:

Publicar un comentario