0

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?

hemant
  • 780
  • 1
  • 6
  • 8

1 Answers1

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