Docker and CI/CD · Junior · Question 69 of 75

Why can't two containers on the default bridge reach each other by name?

Explanation

Create a network (docker network create app) and attach both containers; Compose does this automatically for its services.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 69

Test yourself

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

Take this quiz