I am using the Torizon plugin in VSCode and need to add the option network_mode= host in my container in extraparms. I am trying to make a dbus server.
However, I am getting an error when debugging as follows.
Remote docker exception. :: Error (525) - Docker exception: 400 Client Error for http://127.0.0.1:35551/v1.40/networks/edc472aead9c9585caf3d73176438bd0ec1a09c005cd4882ef6fd153c034694f/connect: Bad Request (“container sharing network namespace with another container or host cannot be connected to any other network”)
device:07028204.
When i remove the network_mode =host option, this error goes away.
Why is this happening?