What does the RUN instruction do in a Dockerfile?

Docker Fundamentals Easy

Docker Fundamentals — Easy

What does the RUN instruction do in a Dockerfile?

Key points

  • RUN executes commands during image build
  • Changes made by RUN are saved as a new layer
  • Helps customize the image during the build process

Ready to go further?

Related questions