docker build with –build-arg with multiple arguments
Use –build-arg with each argument. If you are passing two argument then add –build-arg with each argument like: docker build \ -t essearch/ess-elasticsearch:1.7.6 \ –build-arg number_of_shards=5 \ –build-arg number_of_replicas=2 \ –no-cache .