InquirerSalary issues behind exit of Irish teacher at UP BaguioThe Jerusalem PostLight up your life – and holiday – with Fun in Jerusalem’s Hanukkah activity guideDaily MaverickDRUG BUST: Former doping sample collector banned for trying to tamper with son’s Craven Week testFootball ItaliaNapoli sweat on De Bruyne ahead of Lecce clashSportstarIndia squad for Sri Lanka 2026: Full ODI and T20I squads announced — Siraj named, Samson droppedE! OnlineChris Hemsworth Narrowly Avoids Being Rushed by Man During InterviewWirtualna PolskaTradycje, które łączą. Grupa Żywiec o wartości spotkań między pokoleniamiABC NewsUS unexpectedly lost jobs in November, report showsStraits Times SportSingapore set up Nations Cup final date with Samoa after revenge 66-24 win over MalaysiaIl Fatto Quotidiano“Sono passato dal mestiere più redditizio del mondo a quello meno redditizio, Caterina Balivo me lo chiede tutti i giorni: ‘Ma chi te l’ha fatto fare?'”: così Guido Maria BreraScreen RantDisney's New Sci-Fi Adventure Series Based On Iconic Ride Adds A Lord Of The Rings Starسكاي نيوز عربيةعراقجي يرد على دمشق بشأن "الديون البغيضة"
The Daily Newsstand · Free, Always
Friday, December 4, 2026
Automatic translation is active. Articles in other languages will open in English.Enable automatic translation of articles from other languages into English.

WSL Containers Move Toward Compose Support With Proposed Samples and Automated Tests

The article's text, from Joho no Todai's page.

Translate

On September 29, 2026, U.S. time, Microsoft made WSL Containers (WSLC) generally available. It lets developers build and run Linux containers on Windows without a separate installation such as Docker Desktop. A major development goal was to run existing Compose files without changes.

Compose lets developers define an application’s services, networks, and file-sharing settings in a single YAML configuration file. For an application with a web server and a database, for example, the file can describe the development setup and let the developer start and stop both services together.

A feature request filed on June 30 drew comments calling Compose essential to working with Docker or Podman and asking to use existing configuration files without modification.

On December 4, the WSL team published a proposal to add runnable samples and automated tests for Compose. The examples demonstrate features that work on the development branch. They let developers see actual configuration files for starting containers, connecting with Windows, and communicating across services.

From file sharing with Windows to communication between containers

The sample configuration files and documentation provide three setups that cover basic operation through communication between multiple services.

Compose samples and smoke tests for WSL Containers

SampleConfigurationTest
Proposed for the development branch; all three tests passed
Hello
Basic operation
Alpine Linux
Environment variables and working directory
Successful exit
Web
Web serving
Python 3.12(Alpine)
Windows file sharing
Read-only
Windows port 18080
→ container port 8080
HTTP response
Network
Internal communication
Python server
Alpine client
HTTP by service name
No ports exposed on host
Stop and restart together
Communication succeeds

Hello, the basic example, uses an Alpine Linux container image. It sets an environment variable to a message and specifies /tmp as the working directory. The container prints the environment variable and working directory at startup and exits successfully when it finishes.

Web uses an Alpine Linux image with Python 3.12. It mounts a Windows directory read-only at /www in the container and serves web pages with Python’s HTTP server. It also maps port 18080 on Windows to port 8080 in the container.

The example shows a Linux application reading files managed in Windows and accepting connections from Windows. A single configuration file specifies file sharing and communication across the two operating systems.

Network defines a Python HTTP server and an Alpine Linux client as separate containers on the project’s default network. The client communicates over HTTP with the service name server in place of an IP address. This example publishes no ports to Windows. It also shows how to stop and restart both services as a project.

The documentation says to retry if a request goes out before the server starts. The sample shows how the pieces fit together, from starting the containers to getting a response from the application.

Why the runnable samples are part of automated tests

The development team tests the same Compose files it publishes for users. With no separate test configurations, it checks that Hello exits successfully, Web returns an HTTP response, and Network can communicate between services. The developer reported that all three tests passed.

The documentation calls these smoke tests, which check basic operation. Feature-specific tests cover details such as output, configuration, and behavior from startup to exit. The tests preload the images, so they do not rely on downloads from public registries.

If a feature change breaks an example in the documentation, the tests can catch it. The documentation also describes plans to expand the examples and tests together as support grows. A runnable example that is easy to follow can also serve as a check on development quality.

The samples target WSLC builds from the feature/compose branch. They cover features available with one Compose file. They do not test building images, variable interpolation, profiles, health checks, startup ordering based on service dependencies, or overrides across multiple files.

How far project creation and management have come

The documentation uses create to create containers and start to start them. Running create for an existing project reuses its containers, so edits to the Compose file do not take effect. The documentation advises stopping and removing the containers, removing the network, and then recreating the project.

WSL Containers Compose development status (December 2026)

FeatureStatusChange
Merges and proposals on the development branch
Listing and managementMergedStart and stop by name
Remove unstarted and exited containers
Container nameMergedAt service level
Use container_name
Output forwarding and interruptsProposedStartup logs and output forwarding
Attached up: Two-stage shutdown
attach: Disconnect only
WSLC tests failed
Build 20261204.4
Project nameProposedPriority: -p, name,
then directory name
Multiple filesProposedLater files override earlier ones
Variable interpolationDraftExpand from environment variables and .env

On December 3, a change adding project listing and management was merged into the development branch. Developers can manage projects by name, including starting and stopping them after the original Compose file is deleted. The listing supports tables, JSON, and output containing only project names.

The remove command removes only containers that have been created but never started and containers that have exited. Running containers and project networks remain. Knowing what gets removed matters when rebuilding only part of a project.

A separate December 3 proposal would forward running output to the terminal. It would show container startup logs and forward standard output and standard error.

With up attached to the terminal, the first interrupt would attempt a graceful project shutdown. A second interrupt while waiting would force the containers to stop. Interrupting a standalone attach command would disconnect the terminal and leave the containers running. The proposal covers output forwarding and interrupt handling. It does not cover interactive input through standard input or a TTY.

Build 20261204.4 for this proposal successfully built x64 and ARM64 packages, but WSLC tests failed. An automated code review also flagged a discrepancy between the interrupt exit code and the proposal’s description. In an automated development environment, callers need to be able to tell whether a shutdown succeeded as well as request one.

Using existing Compose files

The December 4 proposal for specifying project names gives the command-line -p option precedence, followed by the top-level name in the Compose file. If -p is absent and name is missing or empty, it uses the project directory name.

The proposal also checks that the top-level name is a string. Values parsed as numbers or booleans are rejected even when -p is supplied. A quoted number is treated as a string. The developer said accepted and rejected names were compared with Docker Compose 5.8.1.

On December 4, the development branch also dropped support for a service-level name as an alias for container_name, since the Compose specification defines no such alias. Use container_name to set a container’s name explicitly. Together with the change that uses top-level name for the project, this brings the meaning of the fields closer to the Compose specification.

Another proposal would merge configuration from multiple files and let later files override some earlier settings. A draft for interpolating values from environment variables and .env files builds on the multiple-file proposal.

For developers considering moving from Docker Compose to WSLC, the question is whether all the services in an application can run as configured. How far configuration file compatibility goes will determine where WSLC becomes a viable option.

If the same configuration file can travel with an application, developers have more freedom to choose where it runs. Compose support is valuable for the choices it opens up.

View the original on Joho no Todai →