Docker Community Forums

Share and learn in the Docker community.

Permanent `--add-host` rules

Is there a way to set permanent host:ip pairs for all build and run commands to avoid --add-host all the time? Found nothing in daemon.json spec.

1 Like