Skip to content

Instantly share code, notes, and snippets.

@Evalle
Created October 20, 2017 12:08
Show Gist options
  • Select an option

  • Save Evalle/7b21e0357c137875a03480428a7d6bf6 to your computer and use it in GitHub Desktop.

Select an option

Save Evalle/7b21e0357c137875a03480428a7d6bf6 to your computer and use it in GitHub Desktop.

Revisions

  1. Evgeny Shmarnev created this gist Oct 20, 2017.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    Either via
    $ docker run --dns 10.0.0.2 busybox nslookup google.com

    or edit your /etc/docker/daemon.json to have something like:

    {
    "dns": ["10.0.0.2", "8.8.8.8"]
    }

    then restart docker service
    $ sudo systemctl docker restart