B
B
beduin012018-03-29 15:33:30
Docker
beduin01, 2018-03-29 15:33:30

Should I run docker with the --net=host key?

If I don't want to mess around with ports, does it make sense to just run everything in --net=host mode instead of forwarding them? Are there any downsides to this mode?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2018-04-02
@shurshur

The processes will simply run on the same networking stack as the rest of the system. In all other senses (pid, file system, etc.) they will be isolated from each other in the same way. There is nothing fundamentally wrong with this, but I don’t see much point in doing so. In simple configurations, docker will destroy all forwarding itself, and in complex ones, alternative network configurations are often used instead of bridge (for example, macvlan).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question