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

cannot set a static IP if joining additional CNI networks #4500

Closed
matihost opened this issue Nov 12, 2019 · 3 comments · Fixed by #4542
Closed

cannot set a static IP if joining additional CNI networks #4500

matihost opened this issue Nov 12, 2019 · 3 comments · Fixed by #4542
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@matihost
Copy link

sudo podman network create --subnet '172.25.0.0/24' mynetwork
sudo podman run -d --rm --name instance0 --network mynetwork --ip 172.25.0.200 image:version
Error: error running container create option: cannot set a static IP if joining additional CNI networks: invalid argument

When '--ip 172.25.0.200' is removed, it assigns next available IP from the subnet.

podman version
Version: 1.6.1

@mheon
Copy link
Member

mheon commented Nov 12, 2019

Hmmm. This ought to be possible, but we'll need to talk to the CNI folks to make sure it's supported now.

@mheon mheon added the kind/bug Categorizes issue or PR as related to a bug. label Nov 14, 2019
@mheon
Copy link
Member

mheon commented Nov 14, 2019

I'll take this.

@mheon mheon self-assigned this Nov 14, 2019
mheon added a commit to mheon/libpod that referenced this issue Nov 20, 2019
These only conflict when joining more than one network. We can
still set a single CNI network and set a static IP and/or static
MAC.

Fixes containers#4500

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
@mheon
Copy link
Member

mheon commented Nov 20, 2019

#4542 to fix

mheon added a commit to mheon/libpod that referenced this issue Nov 21, 2019
These only conflict when joining more than one network. We can
still set a single CNI network and set a static IP and/or static
MAC.

Fixes containers#4500

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
mheon added a commit to mheon/libpod that referenced this issue Nov 26, 2019
These only conflict when joining more than one network. We can
still set a single CNI network and set a static IP and/or static
MAC.

Fixes containers#4500

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants