What does the FROM instruction do in a Dockerfile?

Entry Docker

Answer

FROM sets the base image for your container, for example FROM node:20-alpine or FROM ubuntu:22.04.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice