Docker Git Bash Guide
Helps with Docker, Git as part of deploying and managing cloud infrastructure workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add docker-git-bash-guide npx -- -y @trustedskills/docker-git-bash-guide
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"docker-git-bash-guide": {
"command": "npx",
"args": [
"-y",
"@trustedskills/docker-git-bash-guide"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides guidance and solutions for handling Docker commands within a Git Bash (MINGW) environment on Windows. It specifically addresses issues arising from automatic path conversion that can break volume mounts and other Docker operations. The skill helps users understand when and why these conversions occur, and offers a recommended solution to prevent them.
When to use it
- When encountering errors with Docker volume mounts in Git Bash (MINGW).
- When running Docker commands from within a MINGW or MSYS2 shell on Windows.
- To troubleshoot unexpected behavior when using Docker paths that include forward slashes (
/). - When needing to ensure correct path formatting for Docker commands executed in Git Bash.
Key capabilities
- Path Conversion Explanation: Clearly explains how Git Bash (MINGW) automatically converts Unix-style paths when executing Windows executables like
docker.exe. - Trigger Identification: Identifies specific patterns that trigger automatic path conversion, such as leading forward slashes and colon-separated paths.
- Environment Detection: Provides methods to detect if you are running in a Git Bash/MINGW environment using environment variables (
MSYSTEM,uname). - Solution: MSYS_NO_PATHCONV: Offers the recommended solution of prefixing Docker commands with
MSYS_NO_PATHCONV=1to disable automatic path conversion.
Example prompts
- "How do I mount a volume in Docker when using Git Bash?"
- "Why are my Docker paths being converted incorrectly in MINGW?"
- "What is MSYS_NO_PATHCONV and how do I use it with Docker?"
- "How can I tell if I'm running Docker commands in a Git Bash environment?"
Tips & gotchas
- MSYS_NO_PATHCONV is Recommended: For Git Bash users, using
MSYS_NO_PATHCONV=1before your Docker command is the most reliable solution to prevent path conversion issues. - Environment Detection: The
$MSYSTEMenvironment variable provides the most reliable indication of running in a Git Bash/MINGW environment. - Understand Triggers: Be aware of the specific patterns (leading
/, colons) that trigger automatic path conversion within Git Bash.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.