Hi all
I’m a newbie that is running docker on my QNAP. I slowly built out my install script through google and trial and error. I noticed that the container obtains a new MAC address every restart. Unfortunately, once installed, docker doesn’t let me make changes in the UI. Does anyone know how to specify the Mac address while you are installing? What do I need to add to my script?
Thanks again Metin, it was the quotes. You truly were taking to a newbie. Unfortunately it did not work with QNAP’s docker, still did not assign a Mac address. I found a work around on reddit for my fellow NAPers. If you go to your container storage area in your qnap volume, and go to Container-Station-Data/lib/docker/containers - find your container folder (a very long hashed folder name for each container) - inside you’ll find a qnap.json file. In this file locate the Network section (It might be easier to copy/paste into a JSON parser site). In there you need a new KEY:VALUE (string+string) like this: “mac_addr” : “xx:xx:xx:xx:xx:xx”. If you don’t know how json is formatted, you need to add a comma for each key/value pair.