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

You bind-mount the project into a Node container and the app can't find its modules. Why?

Explanation

Mounting over /app replaces the image's /app/node_modules with the host folder. An extra volume on /app/node_modules, or Compose Watch sync, avoids it.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 17

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