Clearing HWE when creating copying container: Good or bad?


As part of my application I can copy containers between hosts but sometimes they maintain the same IP address, it would appear that clearing out any config key that contains “.hwaddr” prevents its from happening ?

Is this a bad idea ?

That will cause a new MAC address to be generated, which depending on what you’re doing may be reasonable.

How do you ensure that containers dont get duplicate ip addresses when copying between hosts?