Skip to content

Commit a90532e

Browse files
committed
doc: Add default-runtime opt to daemon.json
This is a new flag for the Windows daemon. Signed-off-by: Brian Goff <[email protected]>
1 parent 154ce5e commit a90532e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/reference/commandline/dockerd.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,7 @@ This is a full example of the allowed configuration options on Windows:
15051505
"containerd-plugin-namespace": "docker-plugins",
15061506
"data-root": "",
15071507
"debug": true,
1508+
"default-runtime": "",
15081509
"default-ulimits": {},
15091510
"dns": [],
15101511
"dns-opts": [],
@@ -1537,6 +1538,13 @@ This is a full example of the allowed configuration options on Windows:
15371538
}
15381539
```
15391540

1541+
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.
1542+
1543+
Accepted values:
1544+
1545+
- `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.
1546+
- `io.containerd.runhcs.v1` - This is uses the containerd `runhcs` shim to run the container and uses the v2 HCS API's in Windows.
1547+
15401548
#### Feature options
15411549
The optional field `features` in `daemon.json` allows users to enable or disable specific
15421550
daemon features. For example, `{"features":{"buildkit": true}}` enables `buildkit` as the

0 commit comments

Comments
 (0)