Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.

How can you add comments to your Dockerfile?

Experience Level: Senior
Tags: Docker


Docker treats lines that begin with # as a comment, so add a text prefixed with # character.

# This is a comment.


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