You can set Docker
build arguments using the BuildArgs
array. The build
arguments will be passed to Docker when a build is started.
Procedure
To set Docker build arguments, add entries to the BuildArgs
array, which is
located in the dockerStrategy
definition of the BuildConfig
. For example:
dockerStrategy:
...
buildArgs:
- name: "foo"
value: "bar"