porthole

Volume Management

This document explains how Porthole models storage in the active WSL Containers session and what the Volumes page shows.

Overview

Porthole surfaces two storage attachment types:

  1. Named volumes managed by wslc volume.
  2. Bind mounts discovered by inspecting container mount metadata.

The Volumes page combines both into one view so you can see what data is attached to the active session without switching between container inspect output and volume commands.

What the Volumes page shows

Each row includes:

Named volumes

Named volumes come from wslc volume ls --format json and are scoped to the active session.

Supported operations:

Copy mount string behavior:

Deletion rules:

Bind mounts and virtiofs

Porthole inspects containers to discover bind mounts and labels them separately from named volumes.

Current heuristics:

This is intended as operator guidance, not a low-level runtime guarantee. The exact data plane depends on the underlying runtime and how the mount was configured.

Bind mount behavior in the Volumes page:

Run Wizard integration

The Run Wizard accepts the same mount syntaxes used by the backend:

Wizard behavior:

Limitations