How many times can the FROM instruction appear within a Dockerfile?

Experience Level: Senior
Tags: Docker

Answer

FROM can appear multiple times within a single Dockerfile to create multiple images or use one build stage as a dependency for another.

Comments

No Comments Yet.
Be the first to tell us what you think.
Docker instructions
Docker instructions

Are you learning Docker ? Try our test we designed to help you progress faster.

Test yourself