Docker 6

Dockerfile

Create a real time project

How to pass variable from your host os to docker container
docker container run -e x=$x -it --name cent5 centos:7

Other way is you can directly create the variable while launching the container

--

--