diff --git a/examples/javaweb-tomcat-sidecar/README.md b/examples/javaweb-tomcat-sidecar/README.md index 1825bf3bfe9..eb8d96d817d 100644 --- a/examples/javaweb-tomcat-sidecar/README.md +++ b/examples/javaweb-tomcat-sidecar/README.md @@ -49,7 +49,7 @@ As you can see, user can create a `sample:v2` container as sidecar to "provide" For example, if you are going to change the configurations of your Tomcat: -```sh +```console $ docker exec -it /bin/bash # make some change, and then commit it to a new image $ docker commit mytomcat:7.0-dev @@ -186,13 +186,13 @@ Done! Now your `war` container contains nothing except `sample.war`, clean enoug Create the Java web pod: -```sh +```console $ kubectl create -f examples/javaweb-tomcat-sidecar/javaweb-2.yaml ``` Check status of the pod: -```sh +```console $ kubectl get -w po NAME READY STATUS RESTARTS AGE javaweb-2 2/2 Running 0 7s @@ -206,7 +206,7 @@ You can also test `javaweb.yaml` in the same way. All resources created in this application can be deleted: -```sh +```console $ kubectl delete -f examples/javaweb-tomcat-sidecar/javaweb-2.yaml ```