moby/cli/command
Doug Davis 64aac182d6 Fix processing of unset build-args during build
This reverts 26103.  26103 was trying to make it so that if someone did:
  docker build --build-arg FOO .
and FOO wasn't set as an env var then it would pick-up FOO from the
Dockerfile's ARG cmd.  However, it went too far and removed the ability
to specify a build arg w/o any value. Meaning it required the --build-arg
param to always be in the form "name=value", and not just "name".

This PR does the right fix - it allows just "name" and it'll grab the value
from the env vars if set. If "name" isn't set in the env then it still needs
to send "name" to the server so that a warning can be printed about an
unused --build-arg. And this is why buildArgs in the options is now a
*string instead of just a string - 'nil' == mentioned but no value.

Closes #29084

Signed-off-by: Doug Davis <dug@us.ibm.com>
(cherry picked from commit cdb8ea90b0)
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-12-09 14:24:00 -08:00
..
bundlefile Reinstate --bundle-file argument to 'docker deploy' 2016-11-10 11:28:18 -05:00
checkpoint Print checkpoint id when creating a checkpoint 2016-12-07 16:11:43 -08:00
commands secrets: secret management for swarm 2016-11-09 14:27:43 -05:00
container Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
formatter Fix several issues with go vet and go fmt 2016-11-18 15:14:49 -08:00
idresolver service ps: Truncate Task IDs 2016-11-08 16:17:15 -08:00
image Fix processing of unset build-args during build 2016-12-09 14:24:00 -08:00
inspect add endpoint mode in service pretty 2016-09-27 18:41:19 +08:00
network Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
node Revert "Add -a option to service/node ps" 2016-11-30 14:11:02 -08:00
plugin Add ID field for docker plugin ls 2016-12-05 00:38:57 -08:00
prune add docker network prune 2016-10-25 06:43:54 +00:00
registry Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
secret Fix issue where secret ID is masked by name 2016-12-07 16:09:46 -08:00
service Revert "Add -a option to service/node ps" 2016-11-30 14:11:02 -08:00
stack Handle logging in compose to swarm 2016-12-07 16:14:20 -08:00
swarm fix description of 'docker swarm init' 2016-11-28 11:28:52 -08:00
system Support plugins in docker inspect 2016-12-05 00:39:30 -08:00
task Suppressing digest for docker service ls/ps 2016-11-21 13:23:23 -08:00
volume Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
cli.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
events_utils.go Add subcommand prune to the container, volume, image and system commands 2016-09-29 07:42:53 -07:00
in.go Fix the incorrect description for NewInStream 2016-10-13 22:33:09 +08:00
out.go Windows: OCI process struct convergence 2016-09-19 10:34:31 -07:00
registry.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
trust.go Move image trust related cli methods into the image package. 2016-09-09 10:50:16 -04:00
utils.go return nil when no node or service to avoid additional api call 2016-10-11 10:59:16 +08:00