hyperhq / runv

Hypervisor-based Runtime for OCI
Apache License 2.0
828 stars 129 forks source link

use tc mirred rule to connect hypervisor nic and container nic #592

Closed gao-feng closed 7 years ago

gao-feng commented 7 years ago

Try to fix https://github.com/hyperhq/runv/issues/582

this pr adds tc mirred rules in the netns of shim process to connect two type of nics together without regarding for the docker network mode.

macvtap may be an alternate, but it can only be used on qemu(xen?).

need more test.

laijs commented 7 years ago

LGTM