Difference between revisions of "CMD"
Jump to navigation
Jump to search
(Created page with " Apr 13 12:38:01 SERVER CRON[29579]: (root) CMD ( YOUR_COMMANDS ) == See also == * {{cron}} Category:Cron") Tags: Mobile web edit, Mobile edit |
|||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | * https://docs.docker.com/engine/reference/builder/#cmd | ||
+ | |||
+ | The CMD instruction has three forms: | ||
+ | CMD ["executable","param1","param2"] (exec form, this is the preferred form) | ||
+ | CMD ["param1","param2"] (as default parameters to ENTRYPOINT) | ||
+ | CMD command param1 param2 (shell form) | ||
+ | |||
+ | |||
+ | |||
Apr 13 12:38:01 SERVER CRON[29579]: (root) CMD ( YOUR_COMMANDS ) | Apr 13 12:38:01 SERVER CRON[29579]: (root) CMD ( YOUR_COMMANDS ) | ||
+ | CMD ["python", "./your-srcipt.py", "your-param"] | ||
+ | |||
+ | |||
+ | == Related == | ||
+ | * <code>[[RUN]]</code> | ||
+ | * [[ENTRYPOINT]] | ||
+ | * <code>[[ADD]]</code> | ||
+ | * [[command (Containers)]] | ||
+ | * [[command =]] | ||
== See also == | == See also == | ||
+ | * {{RUN}} | ||
* {{cron}} | * {{cron}} | ||
[[Category:Cron]] | [[Category:Cron]] |
Latest revision as of 12:28, 29 May 2023
The CMD instruction has three forms:
CMD ["executable","param1","param2"] (exec form, this is the preferred form) CMD ["param1","param2"] (as default parameters to ENTRYPOINT) CMD command param1 param2 (shell form)
Apr 13 12:38:01 SERVER CRON[29579]: (root) CMD ( YOUR_COMMANDS )
CMD ["python", "./your-srcipt.py", "your-param"]
Related[edit]
See also[edit]
Advertising: