How to set --dns options on the Docker daemon in Docker for Mac?

Expected behavior

I would like to be able to set the --dns options on the Docker daemon using Docker for Mac. I used to be able to do this using pinata, but now this does not seem to be available any more.

Actual behavior

There is no clear instructions on how to configure the Docker daemon using Docker for Mac. There are a few options available via the GUI, but nothing relating to DNS.


  • the output of:
    • Moby Menu > Diagnose & Feedback on OSX
  • a reproducible case if this is a bug, Dockerfiles FTW
  • page URL if this is a docs issue or the name of a man page
  • host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )

Docker for Mac: version: win-beta-v1.12.0-rc5-beta21-68-g5b59d37
OS X: version 10.11.6 (build: 15G31)
logs: /tmp/E26EC3CD-4CE7-4FFE-8ED6-49D277696766/20160803-134902.tar.gz
[OK] docker-cli
[OK] app
[OK] moby-syslog
[OK] disk
[OK] virtualization
[OK] system
[OK] menubar
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux

Steps to reproduce the behavior

  1. Try and set --dns options on the Docker for Mac daemon

Having same issue - current workaround is to specify dns search domain, but this is clunky.