Enable Experimental Features On Docker Desktop

If you use Docker every day and always looking to expand your knowledge using the experimental features will give you access to new CLI commands and features.

By default, Docker experimental features are disabled and need to be enabled accessing new CLI commands.

Enable Experimental Features

Before enabling, first, we need to check if the feature is enabled or not. To check run the command below and check the flag next to the experimental entry as shown below.

docker version

If the feature is not enabled follow the steps below.

On a Windows machine open the daemon.json file located in this path:

%userprofile%\docker\daemon.json

On Linux you will find it in:

/etc/docker/daemon.json
daemon.json on a Windows machine

In the daemon.json file change the experimental flag to true as shown below and restart the docker service.

{
  "registry-mirrors": [],
  "insecure-registries": [],
  "debug": false,
  "experimental": true,
  "features": {
    "buildkit": true
  },
  "builder": {
    "gc": {
      "enabled": true,
      "defaultKeepStorage": "20GB"
    }
  }
}

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.