To connect your devcontainer to the local network, you must consider use runArgs!!
- Edit
.devcontainer/devcontainer.json
and add"--network=host"
to therunArgs
array - Rebuild your dev container (command palette → Remote Containers: Rebuild Container)
- (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