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

nerdctl inspect does not list networks name properly #2999

Open
apostasie opened this issue May 13, 2024 · 3 comments
Open

nerdctl inspect does not list networks name properly #2999

apostasie opened this issue May 13, 2024 · 3 comments
Labels
area/network enhancement New feature or request

Comments

@apostasie
Copy link
Contributor

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 apostasie added the kind/unconfirmed-bug-claim Unconfirmed bug claim label May 13, 2024
@Shubhranshu153
Copy link
Contributor

Can confirm this output for dockercompat version
There is a todo in ContainerFromNative function

// TODO: set CNI name when possible
fakeDockerNetworkName := fmt.Sprintf("unknown-%s", x.Name)

@apostasie
Copy link
Contributor Author

@Shubhranshu153
Looking at dockercompat.go now - looks like a lot of TODO is needed.
It is also quite outdated wrt current Moby.

Mind if I give it a go overall?

@AkihiroSuda AkihiroSuda added enhancement New feature or request area/network and removed kind/unconfirmed-bug-claim Unconfirmed bug claim labels May 14, 2024
@Shubhranshu153
Copy link
Contributor

Shubhranshu153 commented May 14, 2024

feel free to, i looked a bit but havent done any implementation. Also would be good to confirm with one of the maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/network enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants