nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

nerdctl inspect does not list networks name properly

Open apostasie opened this issue 9 months ago • 3 comments

Description

Title says all.

Steps to reproduce the issue

sudo ./nerdctl run --name foo --network bridge -d debian sleep 3600
sudo ./nerdctl inspect foo

Describe the results you received and expected

"bridge" is listed as "unknown-eth0"

        "NetworkSettings": {
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "10.4.0.50",
            "IPPrefixLen": 24,
            "MacAddress": "fa:b9:e3:9f:67:1b",
            "Networks": {
                "unknown-eth0": {
                    "IPAddress": "10.4.0.50",
                    "IPPrefixLen": 24,
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "fa:b9:e3:9f:67:1b"
                }
            }
        }

What version of nerdctl are you using?

1.7.6.

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

apostasie avatar May 13 '24 08:05 apostasie