Docker and CI/CD · Middle · Question 21 of 75

What does --network host do?

Explanation

No port mapping is needed and there's no NAT overhead, but there's also no network isolation and ports can clash. On Docker Desktop it behaves differently.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 21

Test yourself

Take the Docker and CI/CD · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz