diff --git a/dev_guide/builds/build_strategies.adoc b/dev_guide/builds/build_strategies.adoc index 412aff56cae6..923fd5e83740 100644 --- a/dev_guide/builds/build_strategies.adoc +++ b/dev_guide/builds/build_strategies.adoc @@ -323,6 +323,25 @@ console], set the *Source Secret*. . Click the *Save* button. + +[[docker-strategy-build-args]] +=== Docker Build Arguments + +To set link:http://docs.docker.com/v1.7/reference/api/hub_registry_spec/#docker-registry-1-0[Docker build arguments], add entries to the `BuildArgs` array, which is located in the `dockerStrategy` definition of the `BuildConfig`. For example: + +==== +[source,yaml] +---- +dockerStrategy: +... + buildArgs: + - name: "foo" + value: "bar" +---- +==== + +The build arguments will be passed to Docker when a build is started. + ==== Enabling Pulling and Pushing Enable pulling to a private registry by setting the `Pull Secret` in the build