4
dext3r
5y

How to force a docker container to take the MAC address of host machine? I know net=host and mac-address arguments can be used. But is there a way to get actual host MAC address even though mac-address argument is passed with some other value?

My usecase is node locked licensing using FlexLM which creates license on the basis of MAC address of node.

Comments
  • 3
    Wouldn't that cause arp poisoning on your docker gw, effectively bringing your whole host offline?
  • 0
    ^ it would
  • 1
    Instead of misusing docker, maybe look into what command FlexLM is using to get the macaddr, and edit something that way.

    Maybe you should be asking yourself if you really need a containerized project...
  • 0
    @netikras No it won't. I verified by running multiple docker instances on different machines with same MAC address. I was able to access them via network.
  • 1
    @arcsector FlexLM is a third party library and I cant't get into its source code.

    Decision to use docker is not in my hands.
Add Comment