workspaces-issues icon indicating copy to clipboard operation
workspaces-issues copied to clipboard

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

Open afoc opened this issue 1 year ago • 2 comments

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!

afoc avatar Oct 02 '24 03:10 afoc

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

j-travis avatar Oct 02 '24 08:10 j-travis

I am in the same boat. For me, the reason to want Kasm containers to be on the host network (rather than in the docker network) is the ability to remote into them. For that, I need them to be on a network that I can reach from my PC (and that is not the docker network).

gitwittidbit avatar May 03 '25 15:05 gitwittidbit

We’re currently enhancing our GitHub issue tracker to improve organization and efficiency.

As part of this process, we’re closing older issues to help keep the tracker focused on current and active topics.

If this issue is still relevant or you’re still experiencing the problem, please feel free to create a new issue.

Thank you for your understanding!

teja-kasm avatar Oct 14 '25 17:10 teja-kasm