Merge pull request #3307 from cpuguy83/windows_dockerd_runtime

doc: Add `default-runtime` opt to daemon.json
This commit is contained in:
Sebastiaan van Stijn 2022-03-26 23:49:57 +01:00 committed by GitHub
commit dd7397342a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -1409,6 +1409,7 @@ This is a full example of the allowed configuration options on Windows:
"containerd-plugin-namespace": "docker-plugins", "containerd-plugin-namespace": "docker-plugins",
"data-root": "", "data-root": "",
"debug": true, "debug": true,
"default-runtime": "",
"default-ulimits": {}, "default-ulimits": {},
"dns": [], "dns": [],
"dns-opts": [], "dns-opts": [],
@ -1441,6 +1442,13 @@ This is a full example of the allowed configuration options on Windows:
} }
``` ```
The `default-runtime` option is by default unset, in which case dockerd will auto-detect the runtime. This detection is currently based on if the `containerd` flag is set.
Accepted values:
- `com.docker.hcsshim.v1` - This is the built-in runtime that Docker has used since Windows supported was first added and uses the v1 HCS API's in Windows.
- `io.containerd.runhcs.v1` - This is uses the containerd `runhcs` shim to run the container and uses the v2 HCS API's in Windows.
#### Feature options #### Feature options
The optional field `features` in `daemon.json` allows users to enable or disable specific The optional field `features` in `daemon.json` allows users to enable or disable specific
daemon features. For example, `{"features":{"buildkit": true}}` enables `buildkit` as the daemon features. For example, `{"features":{"buildkit": true}}` enables `buildkit` as the