Skip to content
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

Add subnet and gateway to network config pane #562

Open
unikitty37 opened this issue Jul 18, 2024 · 0 comments
Open

Add subnet and gateway to network config pane #562

unikitty37 opened this issue Jul 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@unikitty37
Copy link

Is your feature request related to a problem? Please describe.
When running a Rails app that uses the better_errors gem, the gem needs to be given this range in the config in order for it to display when running under Docker, as otherwise it will only work on localhost.

I can't get this information through lazydocker, though: when I select a network in the left pane, it shows the network config on the right, but does not show the IP range assigned to the network — I need to run docker network inspect networkname outside of lazydocker to find that out.

Describe the solution you'd like
The information is available at IPAM.Config.Subnet, and could be displayed in the config pane when a network is selected. (The gateway might be useful to some people, too, though it's not needed in my case…)

[
    {
        "Name": "networkname_default",
        "Id": "5a5730fc170cdafbd548b3dbb54365d5f73186bf9756185f968023aa04ed3412",
        "Created": "2024-07-18T12:11:48.881400701+01:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.20.0.0/16",
                    "Gateway": "172.20.0.1"
                }
            ]
        },

Describe alternatives you've considered
Manually running docker network inspect networkname and picking through the output to find what I need. That's not very lazy, though 😁

Additional context

@unikitty37 unikitty37 added the enhancement New feature or request label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant