Docker Community Forums

Share and learn in the Docker community.

Is it possible to set a mac address for `docker build`?


(Wsloand) #1

With docker run, it’s possible to fix the MAC address with the --mac-address option. I’ve looked, and I can’t find a way to fix the MAC address with docker build. I am wanting to dockerize software that has a license fixed to a MAC address (I’m not trying to get around the license; I’m trying to have a more reproducible system architecture).


(Wsloand) #2

I found a partial answer of “no” to my question here:

Is there a better way than build-run-commit for my use case?

(Wsloand) #3

And, I got an end-run yes answer on SO: