In there you need a new KEY:VALUE (string+string) like this: "mac_addr" : "xx:xx:xx:xx:xx:xx". In this file locate the Network section (It might be easier to copy/paste into a JSON parser site). 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. Anyway, I found a way to fix this without having to attempt dockering with SSH or whatnot. So if my lad's friends want to connect but i've restarted my NAS or the container, I had to laboriously re-forward the port in my router's setup. As you may or not know, each time you spin up a docker container - in my case a Minecraft server for my kid - it gives it a new mac address. My router's port forwarding is based on the MAC address rather than the IP.
0 Comments
Leave a Reply. |