5819| 1
|
[容器] Dockerfile中CMD和ENTRYPOINT的区别是什么 |
11金币
最佳答案[md]
## CMD
> The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
```
The CMD instruction has three forms:
CMD ["executable","param1","param2"] (exec form, this is the preferred form)
CMD ["param1","param2"] (as default par ...
| ||
相关帖子 |
||
| ||
客服QQ936487697|联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )
GMT+8, 2025-4-30 00:50 , Processed in 0.061918 second(s), 11 queries , Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.