Due to local network configuration I have to add --dns and --dns-search options to my docker run commands like so:
docker run --dns XX.XX.1.1 --dns-search companydomain -t mycontainer
Is there an environment variable or config file where I can add the DNS options so that I don't have to type them each time I want to run a container?
I'm using docker on Ubuntu 16.04 running on VMware VM hosted on a Windows machine.
Thank you.
See Question&Answers more detail:os