@@ -2,14 +2,14 @@ The Knative build creates an init container for each build step. The init contai
22
33The following command can be used to watch the log of a specific container within a pod,
44
5- [source,bash]
5+ [source,bash,subs="+macros,+attributes" ]
66----
77kubectl logs -n {tutorial-namespace} <pod-name> -c <build-init-container-name>
88----
99
1010**(OR)**
1111
12- [source,bash]
12+ [source,bash,subs="+macros,+attributes" ]
1313----
1414oc logs -n {tutorial-namespace} <pod-name> -c <build-init-container-name>
1515----
@@ -25,7 +25,7 @@ kubectl logs -n {tutorial-namespace} event-greeter-build-pod-2a271e -c build-ste
2525
2626**(OR)**
2727
28- [source,bash]
28+ [source,bash,subs="+macros,+attributes" ]
2929----
3030oc logs -n {tutorial-namespace} event-greeter-build-pod-2a271e -c build-step-docker-push
3131----
@@ -36,14 +36,14 @@ oc logs -n {tutorial-namespace} event-greeter-build-pod-2a271e -c build-step-doc
3636
3737(e.g.) the following command lists all the init container names of the pod `event-greeter-build-pod-2986f2`
3838
39- [source,bash]
39+ [source,bash,subs="+macros,+attributes" ]
4040----
4141kubectl -n {tutorial-namespace} get pods event-greeter-build-pod-2986f2 -o yaml | yq r - spec.initContainers[*].name
4242----
4343
4444**(OR)**
4545
46- [source,bash]
46+ [source,bash,subs="+macros,+attributes" ]
4747----
4848oc -n {tutorial-namespace} get pods event-greeter-build-pod-2986f2 -o yaml | yq r - spec.initContainers[*].name
4949----
0 commit comments