I have a bash script
runmydocker.sh that should grab the DNS string sent by the developer, when running he
runmydocker.sh and create a new DNS inside the
/etc/hosts dynamically and point to the docker server.
This is the flow:
- grab the DNS sent by the user and store it into a MYDNS variable
- copy the content of the current hosts
- insert 127.0.0.1 $MYDNS
- call docker run ....
So the user should do something like that:
And when it write the URL mysite.com it should be using the docker server.
So my question here is how to insert this new DNS into