Skip to content

Commit dd73973

Browse files
authored
Merge pull request #3307 from cpuguy83/windows_dockerd_runtime
doc: Add `default-runtime` opt to daemon.json
2 parents 1c64adf + a90532e commit dd73973

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
@@ -1409,6 +1409,7 @@ This is a full example of the allowed configuration options on Windows:
14091409
"containerd-plugin-namespace": "docker-plugins",
14101410
"data-root": "",
14111411
"debug": true,
1412+
"default-runtime": "",
14121413
"default-ulimits": {},
14131414
"dns": [],
14141415
"dns-opts": [],
@@ -1441,6 +1442,13 @@ This is a full example of the allowed configuration options on Windows:
14411442
}
14421443
```
14431444

1445+
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.
1446+
1447+
Accepted values:
1448+
1449+
- `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.
1450+
- `io.containerd.runhcs.v1` - This is uses the containerd `runhcs` shim to run the container and uses the v2 HCS API's in Windows.
1451+
14441452
#### Feature options
14451453
The optional field `features` in `daemon.json` allows users to enable or disable specific
14461454
daemon features. For example, `{"features":{"buildkit": true}}` enables `buildkit` as the

0 commit comments

Comments
 (0)