kasmtech / workspaces-issues

18 stars 4 forks source link

[Question] - How to configure Kasm to set the network mode of newly created containers to host instead of bridge mode? #628

Open afoc opened 1 week ago

afoc commented 1 week ago

I want the network mode of newly created containers in Kasmweb to be set to host, but there seems to be no instructions on this in the settings or documentation, and I haven’t found anything online. I tried asking Kasmweb, and following its suggestion, I modified each network in /opt/kasm/current/docker/docker-compose.yaml to network_mode: host, but after restarting, the webpage couldn't be accessed, so I had to revert to the original configuration. Does anyone know how to modify this? Thank you!

j-travis commented 1 week ago

In short, network mode will not work with Kasm due to the way traffic is brokered to and from the session. Is there a particular reason you want to use that? Perhaps there are other ways to solve what you want to do