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

Why pin FROM node:22.11-slim instead of FROM node?

Explanation

node means node:latest, which jumps major versions over time. A pinned tag (or even a digest) keeps builds reproducible; update it deliberately.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 61

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