How can you add comments to your Dockerfile?
Experience Level: Senior
Tags: Docker
Answer
Docker treats lines that begin with # as a comment, so add a text prefixed with # character.
Example:
# This is a comment.
Related Docker job interview questions
What is the FROM instruction good for in Docker?
Docker SeniorAre Docker instructions case sensitive?
Docker SeniorHow do you write a list of all running Docker containers to a file file.txt?
DockerDocker CLI JuniorHow do you run a docker image app1 in detached mode and name the container mycontainer1?
DockerDocker CLI JuniorHow do you display logs of a docker container?
DockerDocker CLI Junior
Chat
Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.
Anonymous
Καλησπέρα.
Καλησπέρα.
Anonymous
the infinteis -3/15 so 1triition / infinet
the infinteis -3/15 so 1triition / infinet
Anonymous
e
e
Anonymous
<a href="https://inspirum.pl "
<a href="https://inspirum.pl "
Anonymous
[url]https://inspirum.pl[/url]
[url]https://inspirum.pl[/url]
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e