how to assign specific network interface to docker

2019-08-26 08:20发布

问题:

I want to assign different IP on different Docker. I have created an ubuntu instance on AWS, with 2 network interfaces. Running ifconfig on the ubuntu host, there are eth0 and eth1. May I know how to assign eth0 or eth1 manually to different Docker container?

Thanks.