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?
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.
2.1m questions
2.1m answers
60 comments
57.0k users