From 29b826005e3fbec40fe5d2a80cdfe71fe583cfd2 Mon Sep 17 00:00:00 2001 From: Stewart-YU Date: Sat, 21 Oct 2017 10:36:44 +0800 Subject: [PATCH] Update init-containers.md Fix leading spaces in commands. --- docs/concepts/workloads/pods/init-containers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/concepts/workloads/pods/init-containers.md b/docs/concepts/workloads/pods/init-containers.md index 242c3823a3..9d014b8019 100644 --- a/docs/concepts/workloads/pods/init-containers.md +++ b/docs/concepts/workloads/pods/init-containers.md @@ -75,11 +75,11 @@ Here are some ideas for how to use Init Containers: * Wait for a service to be created with a shell command like: - for i in {1..100}; do sleep 1; if dig myservice; then exit 0; fi; exit 1 + for i in {1..100}; do sleep 1; if dig myservice; then exit 0; fi; exit 1 * Register this Pod with a remote server from the downward API with a command like: - curl -X POST http://$MANAGEMENT_SERVICE_HOST:$MANAGEMENT_SERVICE_PORT/register -d 'instance=$()&ip=$()' + curl -X POST http://$MANAGEMENT_SERVICE_HOST:$MANAGEMENT_SERVICE_PORT/register -d 'instance=$()&ip=$()' * Wait for some time before starting the app Container with a command like `sleep 60`. * Clone a git repository into a volume.