webgui icon indicating copy to clipboard operation
webgui copied to clipboard

Network info display improvements

Open mtongnz opened this issue 4 months ago • 14 comments

This PR aims to improve how networks are displayed for docker containers.

  • fix where network ID instead of a name is displayed (generally for docker compose created containers).
  • display multiple networks and the associated IP for each

mtongnz avatar Feb 10 '24 08:02 mtongnz

Addresses issue #1569

mtongnz avatar Feb 11 '24 00:02 mtongnz

Do you have a screenshot when multiple networks are displayed? (wondering how that looks like)

bergware avatar Feb 14 '24 21:02 bergware

Capture

mtongnz avatar Feb 16 '24 19:02 mtongnz

thanks, looks good.

bergware avatar Feb 21 '24 08:02 bergware

is it possible to test the fix before the release? I'm waiting for this very long... If I just have to swap a file, that's great. Thx

kangaroo72 avatar Mar 03 '24 13:03 kangaroo72

is it possible to test the fix before the release? I'm waiting for this very long... If I just have to swap a file, that's great. Thx

Yes. Edit the webui files on your server as per the commits above.

Easiest way to do this is to use vscode with the sftp plugin as per the unraid GUI Git recommendations. Or you can SSH/terminal into your unraid and use nano - but this is more prone to typos.

I'm away from my PC this week so can't give much more detail. Let me know how you get on.

mtongnz avatar Mar 04 '24 22:03 mtongnz

I fixed the problem by swapping the DockerClient.php. Thanks a lot for this. Is it also mandatory to swap the DockerContainers.php? Thx

kangaroo72 avatar Mar 05 '24 08:03 kangaroo72

I fixed the problem by swapping the DockerClient.php. Thanks a lot for this. Is it also mandatory to swap the DockerContainers.php? Thx

Yes. You need to swap both

mtongnz avatar Mar 05 '24 22:03 mtongnz

It looks like docker ports that aren't mapped are showing that they are: image e.g. these all use 7001 internally but don't map the port

FunkeCoder23 avatar Mar 11 '24 02:03 FunkeCoder23

This also removes the ability to edit existing dockers. This seems like a big issue

FunkeCoder23 avatar Mar 11 '24 03:03 FunkeCoder23

Implemented and tested changes. Cheers

mtongnz avatar Apr 06 '24 00:04 mtongnz

I've been using with my tweaks for a while now, working great

FunkeCoder23 avatar Apr 06 '24 00:04 FunkeCoder23

Just noticed that non-bridge networks didn't show external ports. Fixed in latest commit

mtongnz avatar Apr 06 '24 03:04 mtongnz

@FunkeCoder23 when you get a chance, could you review the last commit I made to this. I found the NAT detection logic was flawed (based on the old code) and so it wasn't showing external port mappings in many cases. Cheers

mtongnz avatar Apr 20 '24 00:04 mtongnz