You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/docs/concept/kubefile.md
+16-4
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,16 @@ For example , copy directory `apollo` to `rootfs/charts/apollo`
37
37
38
38
## CMDS instruction
39
39
40
-
The format of CMDS instruction will execute any commands in a new layer. The CMDS command will be executed when `sealer run` . it is generally used to start applications or configure
41
-
the cluster. and it is the same with `Dockerfile` CMD , if there are multiple `CMDS` instructions in the `Kubefile`, only the last one takes effect.
42
-
And it conflicts with `LAUNCH`, and only one of the two can exist.
40
+
> NOTE: `LAUNCH` instruction is more recommended than `CMDS`.
41
+
42
+
The format of CMDS instruction will execute any commands in a new layer. The CMDS command will be executed when `sealer run` .
43
+
It is generally used to start applications or configure the cluster.
44
+
45
+
And there are some points that require special attention:
46
+
47
+
+ Just like with `Dockerfile` CMD , if there are multiple `CMDS` instructions in the `Kubefile`, only the last one takes effect.
48
+
+ The `CMDS` of the parent image will not be inherited, and you need to redefine it in the child image if you need to have it set.
49
+
+ The `CMDS` instruction and the `LAUNCH` instruction are in conflict, and only one of them can exist.
43
50
44
51
> command format:CMD {command args ...}
45
52
@@ -80,7 +87,12 @@ For example:
80
87
## LAUNCH instruction
81
88
82
89
The `LAUNCH` instruction specifies a list of apps to launch when sealer run. Only one `LAUNCH` instruction can be defined in the Kubefile.
83
-
And it conflicts with `CMDS`, and only one of the two can exist.
90
+
91
+
And there are some points that require special attention:
92
+
93
+
+ The `LAUNCH` of the parent image will not be inherited, and you need to redefine it in the child image if you need to have it set.
94
+
+ The `LAUNCH` instruction and the `CMDS` instruction are in conflict, and only one of them can exist.
0 commit comments