How do I make docker container use specific device(say ens256) on host machine so that traffic will be forwarded outside via specified device(ens256) only?
Asked
Active
Viewed 130 times
1 Answers
0
There is no explicit mapping between host and container network devices, so you will have to run your container in --network=host mode and bind your application to the network device that you want to use.

Fritz Duchardt
- 11,026
- 4
- 41
- 60