type
status
date
slug
summary
tags
category
password
1:概述
2:Docker
2.1:ENTRYPOINT
2.2:CMD
2.3:结合使用
2.4:empty
3:Kubernetes
3.1:COMMAND
3.2:ARGS
3.3:结合使用
3.4:empty
4:总结
描述信息 | Docker 字段名称 | Kubernetes 字段名称 |
The command run by the container(容器运行命令) | ENTRYPOINT | command |
The arguments passed to the command(传递给命令的参数) | CMD | args |
Image Entrypoint | Image Cmd | Container command | Container args | Command run |
[/ep-1] | [foo bar] | <not set> | <not set> | [ep-1 foo bar] |
[/ep-1] | [foo bar] | [/ep-2] | <not set> | [ep-2] |
[/ep-1] | [foo bar] | <not set> | [zoo boo] | [ep-1 zoo boo] |
[/ep-1] | [foo bar] | [/ep-2] | [zoo boo] | [ep-2 zoo boo] |
- 作者:Gitlayzer
- 链接:https://www.devops-engineer.com.cn/article/This%20article%20will%20help%20you%20understand%20k8s'%20cmd%20/%20args%20and%20docker's%20Entrypoint
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。