for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Host Networking: could not get the cgroupv2 ID for /sys/fs/cgroup/docker

Open gustavozantut opened this issue 1 year ago • 25 comments

Description

network host failed to enable, login is not working and docker seems stop working from nowhere. again.

Reproduce

just open docker to rain errors, like "Host Networking could not be started: could not get the cgroupv2 ID for /sys/fs/cgroup/docker: no such file or directory"

Expected behavior

run fine

docker version

latest

docker info

info

Diagnostics ID

6hjk541564165

Additional Info

No response

gustavozantut avatar Nov 03 '24 19:11 gustavozantut

I'm having the same issue with Host Networking (v4.35.1).

MedAymenF avatar Nov 05 '24 12:11 MedAymenF

I am having the same issue,

nag92 avatar Nov 05 '24 14:11 nag92

@gustavozantut Could you generate a diagnostic and update your original message to put the diag ID in there please? See here: https://docs.docker.com/desktop/troubleshoot/#diagnose-from-the-terminal

This would help us understand what's going on. I think could not get the cgroupv2 ID for /sys/fs/cgroup/docker: no such file or directory might be a red herring, and the Engine might fail to start properly.

And for anyone else facing the same issue / error message, could you provide a diag ID also please?

akerouanton avatar Nov 05 '24 15:11 akerouanton

@gustavozantut Could you generate a diagnostic and update your original message to put the diag ID in there please? See here: https://docs.docker.com/desktop/troubleshoot/#diagnose-from-the-terminal

This would help us understand what's going on. I think could not get the cgroupv2 ID for /sys/fs/cgroup/docker: no such file or directory might be a red herring, and the Engine might fail to start properly.

And for anyone else facing the same issue / error message, could you provide a diag ID also please?

@akerouanton done!

[2024-11-05T15:26:00.379040300Z][com.docker.diagnose.exe.public] using HTTP proxy inside com.docker.backend

Uploaded diagnostics to: https://docker-pinata-support.s3.amazonaws.com/incoming/3/CC172A87-C209-466E-9F10-EB7DB9B9FDE4/20241105152515.zip

Diagnostics ID:     CC172A87-C209-466E-9F10-EB7DB9B9FDE4/20241105152515 (uploaded)```

theagenticguy avatar Nov 05 '24 15:11 theagenticguy

Apparently when I updated to 3.34.3 didn't go well, after update it continues to show older version.reinstalling made it work but lost some things

gustavozantut avatar Nov 05 '24 16:11 gustavozantut

@akerouanton Here it is: C9336CE4-8D76-45F5-A509-B428CD159D8D/20241105172325

MedAymenF avatar Nov 05 '24 17:11 MedAymenF

@laithalsaadoon @MedAymenF Thanks! In both cases, I see that we're looking for /sys/fs/cgroup/docker, whereas the engine uses /sys/fs/cgroup/01-docker, although I'm not entirely sure why. I see that both of you have set cgroup_no_v1=all, maybe that's the reason 🤔

akerouanton avatar Nov 05 '24 18:11 akerouanton

Same issue here. @akerouanton: Diagnostics ID: 3C74442D-AFBA-4A81-A402-599C6A6F012A/20241106125511 (uploaded)

fverdoja avatar Nov 06 '24 12:11 fverdoja

@akerouanton same issue here

Diagnostics ID:     58974BE7-6033-44AA-8F0E-AEE0B684B455/20241107163136 (uploaded)

and I just "factory reset" my docker desktop

Neo-Desktop avatar Nov 07 '24 16:11 Neo-Desktop

uninstalling docker desktop and rolling back to docker desktop 4.34.3 allows me to login and enable host networking again

Neo-Desktop avatar Nov 11 '24 04:11 Neo-Desktop

uninstalling docker desktop and rolling back to docker desktop 4.34.3 allows me to login and enable host networking again

yes but doing it every update because people can't test before release is a little boring

gustavozantut avatar Nov 11 '24 10:11 gustavozantut

I should always read the new issues here before updating. :-(

HollisTech avatar Nov 13 '24 20:11 HollisTech

Thanks all for your diags. A fix was merged a few days ago, and the next release due really soon will include it.

akerouanton avatar Nov 15 '24 16:11 akerouanton

Thanks all for your diags. A fix was merged a few days ago, and the next release due really soon will include it.

Nice, thank you. I'm glad to know that next update when i cold reinstall docker again because of new update errors this one will be fixed

gustavozantut avatar Nov 18 '24 12:11 gustavozantut

Thanks all for your diags. A fix was merged a few days ago, and the next release due really soon will include it.

Why u changed name of the issue? it's incorrect to state that you release without proper testing? seems not

gustavozantut avatar Nov 18 '24 15:11 gustavozantut

Thanks all for your diags. A fix was merged a few days ago, and the next release due really soon will include it.

Would you know which release will include that fix @akerouanton, unfortunately 4.36 didn't seem to fix it I still see this error and login doesn't really work properly.

I forgot to mention that I rolled back to 4.34.1 and the issues are gone, login works fine and not error message about host networking.

nmofonseca avatar Nov 20 '24 12:11 nmofonseca

anyone already updated? everything ok or i'll have to build all my images all over again?

gustavozantut avatar Dec 15 '24 00:12 gustavozantut

For me updating did fix the issue, on multiple windows installations.

fverdoja avatar Dec 15 '24 08:12 fverdoja

For me updating did fix the issue, on multiple windows installations.

To which version @fverdoja and OS version? I tried with 4.36.0 and it didn't fix the issue for me. Windows 11 24H2.

nmofonseca avatar Dec 16 '24 09:12 nmofonseca

4.36.0 on 24H2. In case it matters, I'm not signed in.

Image

fverdoja avatar Dec 16 '24 09:12 fverdoja

4.37 ok here

gustavozantut avatar Dec 17 '24 10:12 gustavozantut

I can confirm also, it's working fine for me also now on docker dekstop 4.36.0 in Windows 11 24H2.

Not sure what happened before.

nmofonseca avatar Dec 18 '24 09:12 nmofonseca

I encountered this issue at docker desktop 4.36.0, and I upgrade it to 4.39.0, the issue is still there, not sure what I should do. reinstall?

b95678 avatar Mar 12 '25 07:03 b95678

@b95678 Could you provide a diag please?

akerouanton avatar Mar 12 '25 07:03 akerouanton

@b95678 Could you provide a diag please?

Diagnostics ID: 8871A6FF-FDA2-4D30-BDB0-8F633019361D/20250312080319 (uploaded)

b95678 avatar Mar 12 '25 08:03 b95678

same issue at v4.40.0, after I updated it from 4.30.0. Diagnostics ID: 1A417D36-B893-416C-895E-15194FCEA543/20250409125702

median-dxz avatar Apr 09 '25 13:04 median-dxz

it's mesmerizing how docker developers can cultivate bugs for years, eg.: this one and the memory leakage

gustavozantut avatar Apr 10 '25 09:04 gustavozantut

Image again... now it wont even generate diag docker engine does not start, extensions dont load

gustavozantut avatar May 19 '25 13:05 gustavozantut

@gustavozantut that looks like a different issue. The diagnostics generation can take some time depending on the health of your setup. You may also generate one from the terminal: & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" gather -upload

bsousaa avatar May 20 '25 10:05 bsousaa

@gustavozantut that looks like a different issue. The diagnostics generation can take some time depending on the health of your setup. You may also generate one from the terminal: & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" gather -upload

i simply just purge clean reinstall everything all again, getting used to it :)

gustavozantut avatar May 20 '25 18:05 gustavozantut