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

The CIDR of the bridge can't be changed (network with name bridge already exists) #1490

Closed
AkihiroSuda opened this issue Nov 9, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@AkihiroSuda
Copy link
Member

I tried to modify the network config with just nerdctl, but it looks like there is no way to edit an existing network, and I can't delete the bridge network; it is being recreated right away:

$ nerdctl network rm bridge
bridge
$ nerdctl network create bridge --gateway 10.10.10.1 --subnet 10.10.10.0/24
FATA[0000] network with name bridge already exists
$ nerdctl network inspect bridge
[
    {
        "Name": "bridge",
        "Id": "17f29b073143d8cd97b5bbe492bdeffec1c5fee55cc1fe2112c8b9335f8b6121",
        "IPAM": {
            "Config": [
                {
                    "Subnet": "10.4.0.0/24",
                    "Gateway": "10.4.0.1"
                }
            ]
        },
        "Labels": {}
    }
]

Originally posted by @jandubois in rancher-sandbox/rancher-desktop#3365 (comment)

Seems regression in v0.22.1

@AkihiroSuda AkihiroSuda added the bug Something isn't working label Nov 9, 2022
@Zheaoli
Copy link
Member

Zheaoli commented Nov 13, 2022

like #1425, If we allow people to change the CIDR of a network configuration, I think it would be better to validate if there is any container existed related with this network

@AkihiroSuda
Copy link
Member Author

like #1425, If we allow people to change the CIDR of a network configuration, I think it would be better to validate if there is any container existed related with this network

Yes, it should be validated

@fahedouch
Copy link
Member

I believe that we have to exclude e.ensureDefaultNetworkConfig() From NewCNIEnv(cniPath, cniConfPath string). I take this ticket

@fahedouch
Copy link
Member

closed by #1554

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants