#meta-virtualization
I am trying to get multicast from docker container to interface on the host. I have tried docker custom bridge and docker macvlan, but neither options works.
Custom bridge works enough that the multicast pdus reach the br-xxxx interface, but the packets don’t reach the eth0 host interface. I also tried macvlan, but following error was reported during configuration.
root@fujitsu:~/aiml# docker network create -d macvlan \
Quoted 1 line
--subnet= 127.1.0.0/16 ( http://127.1.0.0/16 ) --gateway=127.1.254.253 \
054:09ff:fe12:0506:0000:0000 \09ff:fe12:0506:0000:0000/64 --gateway=fe80:0000:5
Quoted 5 lines
-o parent=eth5.2003 \
--ipv6 \
macvlan0
cf2348298100754191191a1c70ee1b5da1bd56fca3ec08c977e85a701d7c5019
[33809.124168] eth0: renamed from veth8567d91
parent closed synchronisation channel
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:334: running prestart hook 0 caused \"error running hook: exit status 1, stdout: , stderr: time=\\\"2020-11-19T06:01:21Z\\\" level=fatal msg=\\\"failed to add interface veth8567d91 to sandbox: failed to set link up: device or resource busy\\\" \\n\ ( file://n/ ) "".
root@fujitsu:~# docker network ls
NETWORK ID NAME DRIVER SCOPE
2fb1ae8f548a bridge bridge local
b47c9cfdcdb0 host host local
354f7a8cc8ec macvlan0 macvlan local
552abbb95b25 none null local
Other readings suggested to use *pipework* , but this isn’t available.
Can you suggest the best way to add pipework to Yocto? Also, do you know if pipework is supported on Yocto 2.3?
There isn't a recipe in metavirtualization layer for pipework. Any suggestions?
root@fujitsu:~# uname -a
Linux fujitsu 4.9.82-yocto-standard #1 SMP PREEMPT Wed Feb 12 13:59:42 CST 2020 x86_64 x86_64 x86_64 GNU/Linux
root@fujitsu:~# docker -v
Docker version 1.13.0, build 49bf474-unsupported