How do I make a comment in a Dockerfile? In a Dockerfile, you can add comments to provide information about the Dockerfile and the instructions in it.