Docker /etc/docker/daemon.json not found?

I don’t find the /etc/docker/daemon.json in my mac and when tried to create one I’m not allowed to create. can someone explain how can I create in it or is it only accessible in ubuntu ?

To configure the Docker daemon using a JSON file, create a file at /etc/docker/daemon.json on Linux systems, or C:\ProgramData\docker\config\daemon.json on Windows. On MacOS go to the whale in the taskbar > Preferences > Daemon > Advanced.

Here’s what the configuration file looks like:

  "debug": true,
  "tls": true,
  "tlscert": "/var/docker/server.pem",
  "tlskey": "/var/docker/serverkey.pem",
  "hosts": ["tcp://"]