Closed zhang2639 closed 6 years ago
hostname -I
works.
(a) passing --network=host to runsc means the userspace networking stack netstack won't be used. A "connect()" from within gvisor becomes a "connect()" on a host kernel.
(b) there is also --network=host that you need to pass on to the docker. which will keep your docker not to create a new dedicated network namespace.
Not sure if this helps.
docker version
uname -a
Full docker command you ran
/etc/docker/daemon.json
create
logIn log,
Network: host
means I start container successfully. But I useifconfig
in container, it failed. See:eth0 in host.
Is it because my network adapter doesn't fit ? So how to use network passthrough? Thank you for helping me.