Hi everyone,
I’m trying to set up several containers on my TS-264, first using Docker Compose, but that didn’t work. So I tried starting simpler with just plain Docker, but that’s also failing.
At the end, I need to run 4 containers that can communicate with each other. The plan is:
- 3 containers on an ipvlan network.
- 1 container in host mode (because it needs to access the USB port).
To keep things simple for testing, I wrote a basic script that pulls and runs an Alpine container.
Here’s my script:
#!/bin/sh
# 1. verwijder de alles
docker network rm qnap-ipvlan 2>/dev/null || true
docker rm -f alpine 2>/dev/null || true
# 2. Maak ipvlan netwerk (L2 mode)
# docker network create -d ipvlan --subnet=10.159.2.0/24 --gateway=10.159.2.4 --ip-range=10.159.2.96/28 -o parent=eth1 -o ipvlan_mode=l2 qnap-ipvlan
docker network create -d ipvlan --subnet=10.159.2.0/24 --gateway=10.159.2.4 --ip-range=10.159.2.96/28 -o parent=eth1 -o ipvlan_mode=l2 -o ipvlan_flags=bridge -o com.docker.network.driver.mtu=1500 qnap-ipvlan
# 3. Wwerkt het
docker network inspect qnap-ipvlan
# 4. Test met alpine continer
docker run -it --rm --network=qnap-ipvlan --ip=10.159.2.109 alpine sh -c "ping -c 2 10.159.2.4 && ping -c 2 10.159.2.10"
# 5. Alpine bereikbaar
# Vanaf QNAP zelf:
curl -I http://10.159.2.109 2>/dev/null || echo "Testing connection"
And this is the result/error I get:
[/share/Container/docker-compose] # chmod ug+x ./setup_IPvlan_alpine.sh
[/share/Container/docker-compose] # ./setup_IPvlan_alpine.sh
qnap-ipvlan
9f3dbd6a27cfa1812--------636471f5893ba6b38bf15f7b2c
[
{
"Name": "qnap-ipvlan",
"Id": "9f3dbd6a27cfa1812a----3b31636471f5893ba6b38bf15f7b2c",
"Created": "2026-01-14T22:05:40.655178454+01:00",
"Scope": "local",
"Driver": "ipvlan",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "10.159.2.0/24",
"IPRange": "10.159.2.96/28",
"Gateway": "10.159.2.4"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {},
"Options": {
"com.docker.network.driver.mtu": "1500",
"ipvlan_flags": "bridge",
"ipvlan_mode": "l2",
"parent": "eth1"
},
"Labels": {}
}
]
docker: Error response from daemon: failed to create the ipvlan port: device or resource busy.
Testing connection
The main error I’m hitting is:
“docker: Error response from daemon: failed to create the ipvlan port: device or resource busy.”
Why does this “device or resource busy” ipvlan error appear? How can I fix this so I can move forward with the setup?
Any advice or suggestions would be really appreciated
thanks in advance!