Does wslc support docker compose?
wslc does not support docker compose. The public preview ships no Compose
runtime and no wslc compose subcommand. If you try wslc compose up,
wslc treats compose as an unknown command. There is no daemon that could run a
Compose file — each container is a standalone process in a Hyper-V utility VM.
run, build, pull, push,
exec, logs and friends operate on single containers. The pieces a
Compose runtime would need — dependency ordering, restart supervision — do not exist in the
preview command surface.
## The official request: microsoft/WSL #40948
The feature request "Compose support in WSLc" is the most-commented wslc issue
in the microsoft/WSL repository. As of mid-2026:
- 20 comments from users and Microsoft staff
- Opened by a WSL program manager (signals first-party interest)
- No milestone, no assignee, no implementation pull request
Realistic read: Compose is being evaluated, but it is not actively scheduled. It is unlikely
to land in the autumn 2026 GA release. Watch the issue and the WSL release notes for movement.
## How to run a compose file with wslc today
Until Compose lands, translate the stack into individual wslc run commands. The
pattern is always the same: create topology first, start dependencies before dependents, and
replace depends_on with a real readiness probe.
Key substitutions:
| Compose concept | wslc equivalent |
|---|---|
| networks: | wslc network create |
| volumes: | wslc volume create |
| services: X | wslc run --name X |
| depends_on | explicit ordering + readiness probe |
| restart: | Windows Scheduled Task or wrapper loop |
| healthcheck: | --health-cmd etc. (wslc supports these) |
| build: | wslc build -t name:tag . |
For a field-by-field translation table, see the
Compose migration guide. To generate the script automatically,
paste your file into the Compose migration analyser.
Related guides
Compose migration guide →
Field-by-field translation of a compose file to wslc commands.
Compose migration analyser →
Paste a docker-compose.yml and get a wslc startup script.
Compose key support matrix →
Every compose key audited against wslc 2.9.4.0.
Install WSL containers →
Get wslc running in two commands.
Complete WSL containers guide →
The end-to-end overview of what wslc is and how to use it.