-
Is there a way to add a container with static IP assigned to the network with bridge IPAM set as DHCP?
Podman command:
I know that this can be done by manually setting up network namespace, but it would be nice if this just worked. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@mccv1r0 what do you think? |
Beta Was this translation helpful? Give feedback.
-
Yes. To start you really should make sure that the static ip isn't something that the dhcp server is going to hand out. For podman, you would need 2 .conflist files, each with a different name obviously. One has ipam |
Beta Was this translation helpful? Give feedback.
Yes. To start you really should make sure that the static ip isn't something that the dhcp server is going to hand out.
For podman, you would need 2 .conflist files, each with a different name obviously. One has ipam
type: dhcp
(like in your example) and the other has ipamtype: host-local
. They both point to the same Linux bridge.