KodeCloud CKAD Configuration
Links: 111 KodeCloud Index
Commands & Arguments¶
- In case of
ENTRYPOINTin docker whatever command you specify will get appended toENTRYPOINTcommand. -
In case of
CMDthe command line instruction will get replaced entirely whereas in case ofENTRYPOINTthe command line parameters will get appended. -
Pod definition with
ENTRYPOINTandCMD
In the above example command is equivalent to the ENTRYPOINT instruction in the Dockerfile and the args is equivalent to the CMD instruction
-
The
commandsandargsmust be in quotes. -
In general I have only seen the use of command and not args in a definition file.
-
Questions: Find the command being run assuming the pod is created from the image of Dockerfile.
python app.py --color pink
--color green
Basically command overrides the entrypoint of Dockerfile
- Commands is an array so they can also be given in the following way
Last updated: 2022-09-23