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
Add support for CMD in addition to ENTRYPOINT (#102)
OCI supports both. We should support both.
This is especially useful for _removing_ `CMD` if it is set in base
images.
Previously there was no way to do this and it would always be appended
to whatever `ENTRYPOINT` the image had (per OCI spec)
@@ -161,7 +161,8 @@ index, then `os` and `arch` will be used to extract the image manifest.
161
161
| <aid="oci_image-base"></a>base | A base image, as defined by oci_pull or oci_image. | none |
162
162
| <aid="oci_image-annotations"></a>annotations | OCI Annotations to add to the manifest. |`None`|
163
163
| <aid="oci_image-arch"></a>arch | Used to extract a manifest from base if base is an index. |`None`|
164
-
| <aid="oci_image-entrypoint"></a>entrypoint | A list of entrypoints for the image; these will be inserted into the generated container configuration. |`None`|
164
+
| <aid="oci_image-cmd"></a>cmd | Default arguments to the entrypoint of the container. If an Entrypoint value is not specified, then the first entry of the Cmd array will be interpreted as the executable to run |`None`|
165
+
| <aid="oci_image-entrypoint"></a>entrypoint | A list of arguments to use as the command to execute when the container starts; these will be inserted into the generated OCI image config |`None`|
165
166
| <aid="oci_image-env"></a>env | Entries are in the format of `VARNAME=VARVALUE`. These values act as defaults and are merged with any specified when creating a container. |`None`|
166
167
| <aid="oci_image-labels"></a>labels | Labels that will be applied to the image configuration, as defined in the OCI config. These behave the same way as docker LABEL. In particular, labels from the base image are inherited. An empty value for a label will cause that label to be deleted. For backwards compatibility, if this is not set, then the value of annotations will be used instead. |`None`|
167
168
| <aid="oci_image-layers"></a>layers | A list of layers defined by oci_image_layer. |`None`|
0 commit comments