G
G
Gruzchick2020-06-16 17:54:11
Docker
Gruzchick, 2020-06-16 17:54:11

What does # mean inside a Dockerfile command?

The docker documentation https://docs.docker.com/engine/reference/builder/#... has this sentence

"A # marker anywhere else in a line is treated as an argument. This allows statements like:
RUN echo 'we are running some # of cool things'

" this is where i can read about it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ighor July, 2020-06-16
@Gruzchick

This means that the # symbol will be passed to the command arguments, and not to comment the line.
In the case of this example, the command is echo and the argument is 'we are running some # of cool things'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question