How to pass arguments to a Dockerfile? - Stack Overflow
https://stackoverflow.com/questions/34254200/how-to-pass-arguments-to-a-dockerfile
WEBDec 14, 2015 · 2 Answers. Sorted by: 428. +300. As of Docker 1.9, You are looking for --build-arg and the ARG instruction. Check out this document for reference. This will allow you to add ARG arg to the Dockerfile and then build with. docker build --build-arg arg=2.3 . edited Dec 21, 2021 at 12:57. Gulzar. 25.9k 29 132 227. answered Dec 13, 2015 at 18:28.
DA: 60 PA: 90 MOZ Rank: 7