Creating QNAP container on separate VLAN

This blog post will explain how to use VLANs with docker-compose in QNAP and fix "NetworkDriver.Join: list index out of range" errors.


QNAP system allows you to create VLAN virtual interfaces in "Network & Virtual Switch" options, but when they're added in docker-compose like so docker-compose up fails with "ERROR: for redis Cannot start service redis: NetworkDriver.Join: list index out of range" error.
To use vlans in docker-compose vlan should be removed from "Network & Virtual Switch" and instead of qnet, macvlan driver should be used

Comments