PUBLICATION_DATE: 2021.12.05

Docker for Mac - Default Docker Engine Config

DOMAIN: DevOps/Containers

« BACK TO NOTES

This is the default Docker Engine configuration JSON. I once needed to revert and had a difficult time locating this without resetting my whole installation.

This configuration is stored in ~/.docker/daemon.json or can be edited through Docker Desktop preferences.

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "features": {
    "buildkit": true
  },
  "experimental": false
}

Configuration options:

  • builder.gc - Garbage collection settings to automatically clean up build cache
  • defaultKeepStorage - Maximum disk space reserved for build cache
  • buildkit - Enables BuildKit, Docker's improved build backend
  • experimental - Toggles experimental Docker features

Install Docker for Mac

Follow instructions on the install page.

Install Docker for Windows

Follow instructions on the Windows install page.