• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


25 Feb, 2025

Updated at 21 Mar, 2025

Can I disable MAC randomization introduced in v28?

I use compose on debian to run my stacks, and several containers use static IP’s.
I updated to v28, and now every time I pull/up my containers my firewall quarantines the networks because of MAC randomization, i.e. MAC address changed, new device detected on network, placed in quarantine group.

Is there a way to revert to the previous behavior where the v4 MAC was the bridge network?
Or do I now need to specify IP and MAC for every static IP network config?

E.g. just IP set, now randomizes MAC

    networks:
      public_network:
        ipv4_address: ${FOO_IP}
      local_network:

E.g. IP and MAC set

    networks:
      public_network:
        ipv4_address: ${FOO_IP}
        mac_address: ${FOO_MAC}
      local_network:

Change notice: Engine v28 | Docker Docs
“Container interfaces in bridge and macvlan networks now use randomly generated MAC addresses.”
IPv6 only: use random MAC addresses by robmry · Pull Request #48808 · moby/moby · GitHub

1 post - 1 participant

Read full topic