0

I want to configure docker(which is running on mac) with DOCKER_OPTS variable pointing to my server ip addresses .

In linux we can configure the docker file present in /etc/default.

How can we achieve the same thing in mac?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Vishnu K
  • 65
  • 1
  • 6

1 Answers1

0

You could export DOCKER_OPTS as

DOCKER_OPTS="-g $(readlink -f /path/to/your/config/file)"

Since Mac does not have readlink -f, use greadlink instead

export DOCKER_OPTS="-g $(greadlink -f /path/to/your/config/file)"
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250