ENTRYPOINT
Dockerfile - line 3
ENTRYPOINT [ "/hello.sh" ]
The ENTRYPOINT instruction lets you configure a container that will run as as an executable. Every time you launch a container using this image, the container will run the program specified in ENTRYPOINT
, and any options you provide when launching will be passed as arguments to the program.
Any mandatory command-line arguments for the the process should be specified after the program name. If specified, mandatory arguments will not be overridden by any explicitly supplied arguments when launching a container using this image.
For example:
ENTRYPOINT ["executable", "param1", "param2"]
Optional arguments
Any optional command-line arguments that you would like to supply to the ENTRYPOINT
process by default should be added to a CMD instruction. These will be appended to the list of any of mandatory arguments you specify with the ENTRYPOINT
instruction. However, optional arguments will be overridden by any explicitly supplied arguments when launching a container using this image.
Last updated