I am trying to pass arguments to dockerfile. My dockerfile:
MAINTAINER Abhay Kumar Somani
CMD echo $var1
Now I want to pass the value for var1 while starting the docker instead of making it static. For example
docker run -i -t ABHAYKUMARSOMANI should perform echo ABHAYKUMARSOMANI after starting the container.
Is there any way I can achieve this?