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: docs/container-contract.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ If you do not specify a `command` value, the Pipelines controller performs a loo
30
30
the `entrypoint` value in the associated remote container registry. If the image is in
31
31
a private registry, you must include an [`ImagePullSecret`](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account)
32
32
value in the service account definition used by the `Task`.
33
-
The Pipelines controller uses this value unless the service account is not
33
+
The Pipelines controller uses this value unless the service account is not
34
34
defined, at which point it assumes the value of `default`.
35
35
36
36
The final fallback occurs to the Docker config specified in the `$HOME/.docker/config.json` file.
@@ -39,16 +39,16 @@ controller performs an anonymous lookup of the image.
39
39
40
40
For example, consider the following `Task`, which uses two images named
41
41
`gcr.io/cloud-builders/gcloud` and `gcr.io/cloud-builders/docker`. In this example, the
42
-
Pipelines controller retrieves the `entrypoint` value from the registry, which allows
43
-
the `Task` to execute the `gcloud` and `docker` commands, respectively.
42
+
Pipelines controller retrieves the `entrypoint` value from the registry, which means
43
+
the container will execute using the default `entrypoint` defined in the image.
44
44
45
45
```yaml
46
46
spec:
47
47
steps:
48
48
- image: gcr.io/cloud-builders/gcloud
49
-
command: [gcloud]
49
+
# No command specified, so the default entrypoint from the image will be used
50
50
- image: gcr.io/cloud-builders/docker
51
-
command: [docker]
51
+
# No command specified, so the default entrypoint from the image will be used
52
52
```
53
53
54
54
However, if you specify a custom `command` value, the controller uses that value instead:
0 commit comments