-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host networking causes an explosion of Docker processes #9993
Comments
As a side note, this issue has emerged somewhat recently (in the past 2-3 months). Before that I had no problem using host networking. |
I guess the port forwarding just keeps connecting to itself. The Dev Containers extension would need a way to tell VS Code that no port forwarding should be done to avoid this. Workaround is to not forward any ports. |
@chrmarti do you have an idea about why this only started a few months ago? We do have a way for the Dev Containers extension to VS Code that. Several options:
I think 2 is probably the best bet. |
When I create a devcontainer with host networking and try to connect to a forwarded port, I am getting an explosion of Docker processes that keeps increasing until all memory has been consumed. I think this might be the underlying issue behind #4079 and microsoft/vscode-docker#2875 too.
Setup information
And my version of the devcontainers extension is
v0.369.0
.Minimum reproducible example
devcontainer.json:
Dockerfile:
FROM python:3.11.6-slim-bookworm
1234
curl https://localhost:1234/
curl
or run out of memory and have to reboot.Regarding how fast this is happening, I would say around 10 new processes are being created every second, consuming an additional 300 MB per second. I have 24 GB of RAM on my system so everything comes to a halt after about 10-15 seconds.
The text was updated successfully, but these errors were encountered: