Difference between revisions of "ARG"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
  RUN bin/elasticsearch-plugin install --batch repository-gcs
 
  RUN bin/elasticsearch-plugin install --batch repository-gcs
  
 +
[[--build-arg]]
 +
[[$1]]
  
 
== See also ==
 
== See also ==

Latest revision as of 10:16, 8 April 2023

https://docs.docker.com/engine/reference/builder/#arg

ARG elasticsearch_version
FROM docker.elastic.co/elasticsearch/elasticsearch:${elasticsearch_version}

RUN bin/elasticsearch-plugin install --batch repository-gcs
--build-arg
$1

See also[edit]

Advertising: