Reti Host

Lo Host Networking consiste nel mappare tutte le porte del container alle stesse porte dello host.

Esempio con Host Networking:

docker run -d --net=host adejonge/helloworld
  • Condivide l'indirizzo IP dello host
  • Non viene più usato il bridge vethxxxx

Verificare con ifconfig e docker ps

Solo un container può usare la porta 8080 se in modalità Host Networking.