-
In order to configure dual stack network for podman default network (backend is netavark), I'd like to define the podman.json configuration file in a separate RPM instead of modify it after creation. However, the 'id' and 'created' fields are things we cannot know in advance.
If I do not provide 'id' and 'created' in the configuration file. Then an error will be reported.
So, is it the only way to enable IPv6 by editing /etc/containers/networks/podman.json after default network creation? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
If you place the file there it will take immediately effect, however if you modify it you should make sure you have no containers running as it will not change already running container network options. Only containers started after the change pick up the changes. As for the id and created fields you can just hard code them to any value of your choice, i.e. this will always be the podman id: |
Beta Was this translation helpful? Give feedback.
-
Hi @Luap99, To sum up, there are two possible ways to enable IPv6 for default network:
Q for way 1:
Q for way 2:
Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thank you @Luap99, mark it as answered.. |
Beta Was this translation helpful? Give feedback.
Yes it should be a valid 64 char hex id but which one should not matter as long as you make sure other network configs in this directoy do not use the same ID.
Networks created by podman network create will never cause a ID conflict as the code checks that the ID is no…