docker-via-wsl
Use when YOU (the AI agent) are running on Windows OUTSIDE WSL (Git Bash/MSYS/PowerShell shell) and need to run ANY docker / docker compose command. Docker Desktop runs on the WSL2 engine, so commands must be re-issued INSIDE WSL via wsl.exe -- running them from the Windows shell on a network/SMB drive (Z:, UNC) corrupts bind-mount paths. Does NOT apply if your shell is already inside WSL. Triggers on: docker, docker compose, docker-compose, container, bind mount, volume, 'is a directory', mount source wrong, Windows + Docker Desktop, WSL.
- Version
- 1.15.0
- License
- (MIT AND CC-BY-SA-4.0)
- Compatibility
- Windows host with Docker Desktop using the WSL2 backend.
Pinned to revision c48f8bc62a38, so it is the text this page describes rather than whatever the author pushed since.
Pre-approved tools experimental
Experimental field. Support varies between clients, so this list is what the author declared, not what your client will enforce.
- Bash(wsl.exe:*)
- Bash(docker:*)
- Bash(uname:*)
- Read
- Glob
- Grep
Files
Every link opens the file at its source, pinned to the revision this page describes.