
Docker git bind mount push debug
Debugs Git commit, fetch and push failures for repos bind-mounted into Docker containers
Docker git bind mount push debug is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 18
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Docker git bind mount push debug
This skill helps an agent work out why Git operations succeed on the host but fail inside a container when the worktree or a bare remote is mounted from the host, a setup that often comes up on Docker Desktop for Windows. It walks through a fixed diagnostic order: checking the docker run arguments and bind sources, confirming the container stays alive across several docker exec calls, registering each mounted Git directory as safe, and rewriting remote URLs to container paths instead of host paths.
The skill also guards against false success. It warns that shell fallbacks such as a trailing echo can mask a failed push, and it asks the agent to read back the expected file or ref directly from the bare remote before trusting the result. It separates real permission or read-only denials from errors like a missing remote or bad refspec, and it recommends capturing UTF-8 output on Windows so Git errors are not hidden.
A completion checklist sets the bar for finishing: several consecutive exec calls succeed, authorized pushes land in the intended remote, protected writes fail at the mount boundary, and the workload container is removed afterward. Use it with Docker and Git available on the host.
When your agent uses it
Diagnose and validate Git commit, fetch, and push failures when worktrees or bare remotes are bind-mounted into Docker, especially on Docker Desktop for Windows. Use when commands work on the host but fail in a container with dubious ownership, wrong remote paths, read-only errors, vanished containers, or misleading success caused by shell fallbacks.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (3 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/docker-git-bind-mount-push-debug to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/docker-git-bind-mount-push-debug &&
cp -R "$tmp/shared_skills/active/docker-git-bind-mount-push-debug" ~/.claude/skills/docker-git-bind-mount-push-debug &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/docker-git-bind-mount-push-debug inside it instead.
Copy the skill folder to ~/.agents/skills/docker-git-bind-mount-push-debug to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/docker-git-bind-mount-push-debug &&
cp -R "$tmp/shared_skills/active/docker-git-bind-mount-push-debug" ~/.agents/skills/docker-git-bind-mount-push-debug &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/docker-git-bind-mount-push-debug inside it instead.
Copy the skill folder to ~/.cursor/skills/docker-git-bind-mount-push-debug to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/docker-git-bind-mount-push-debug &&
cp -R "$tmp/shared_skills/active/docker-git-bind-mount-push-debug" ~/.cursor/skills/docker-git-bind-mount-push-debug &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/docker-git-bind-mount-push-debug inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/JinNing6/Noosphere.git --path shared_skills/active/docker-git-bind-mount-push-debugOr copy the folder to ~/.gemini/skills/docker-git-bind-mount-push-debug yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/docker-git-bind-mount-push-debug:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/docker-git-bind-mount-push-debug &&
cp -R "$tmp/shared_skills/active/docker-git-bind-mount-push-debug" ~/.copilot/skills/docker-git-bind-mount-push-debug &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/docker-git-bind-mount-push-debug inside it instead.
Get the folder:
git clone --depth 1 https://github.com/JinNing6/Noosphere.gitThen copy Noosphere/shared_skills/active/docker-git-bind-mount-push-debug into your agent's skills folder as docker-git-bind-mount-push-debug. Agents that support SKILL.md read one folder per skill.
What it does
- Ordered mount diagnosis
- Walks through docker run arguments, bind sources, read-only flags and container lifecycle in a fixed order.
- Container safe directory setup
- Shows how to register bind-mounted worktrees and bare remotes as safe directories inside the container.
- Container remote addressing
- Explains why host paths fail in Linux containers and how to point remotes at container paths.
- False success detection
- Verifies pushes by reading the expected object back from the bare remote rather than trusting exit codes.
- Boundary error classification
- Separates real read-only or permission denials from missing remotes, bad refspecs and other errors.
- Completion checklist
- Lists the conditions to confirm before agent integration, including mount policy tests and container cleanup.
Good for
- Fix a git push that works on the host but fails with dubious ownership inside a Docker container
- Diagnose why a bind-mounted bare remote rejects writes with read-only errors
- Verify that a container-side push actually landed in the target bare repository
- Set up read-only and writable mounts so only the approved remote accepts commits
- Check why a Docker exec session vanished before a Git workflow finished
Docker git bind mount push debug FAQ
When does Docker git bind mount push debug trigger?
It is meant for cases where Git commands work on the host but fail in a container with dubious ownership, wrong remote paths, read-only errors, vanished containers, or misleading success from shell fallbacks.
What does the skill need to run?
The skill itself contains no scripts. It gives the agent a diagnostic procedure and shell commands that use docker and git, so both must be available.
Does Docker git bind mount push debug change my repositories or containers?
It instructs the agent to run git config --global safe.directory entries inside the container and to remove the workload container at the end. It does not ship code that modifies anything on its own.
Which clients can use Docker git bind mount push debug?
The skill follows the shared agent skills format without client-specific hooks or plugins, so it can be used by any supported coding agent.
How do I install Docker git bind mount push debug in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/docker-git-bind-mount-push-debug to use it in all your projects, or to .claude/skills/docker-git-bind-mount-push-debug in one project.
Does Docker git bind mount push debug run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Docker git bind mount push debug?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Docker git bind mount push debug?
The closest alternatives to Docker git bind mount push debug are Container ops edho ferdian, Dispatched bash agent git checkout clobbers uncommitted edit, Git workflow, Deploy from stale worktree silent rollback and Debugging and error recovery.
Where this comes from
- Description: from the skill's own SKILL.md.
More from JinNing6/Noosphere

Checks a shared Noosphere skill registry before debugging a concrete software failure
- Open source
- 18 GitHub stars
- Developer tools

Has the agent check Noosphere shared debugging memory before fixing bugs and upload
- Open source
- 18 GitHub stars
- Knowledge and memory

Lets an agent audit credential loaders so raw key bytes are never altered before
- Open source
- 18 GitHub stars
- Security

Diagnoses browser clicks, hover and focus that fail though elements look visible
- Open source
- 18 GitHub stars
- Browser automation

Diagnoses why a Cloudflare Pages site still serves old assets after a deploy
- Open source
- 18 GitHub stars
- Cloud and infrastructure

Fixes Codex Desktop project sidebar ordering so recently active projects move to the top
- Open source
- 18 GitHub stars
- Developer tools




