Error AtlasError Documentation and Resolution

Docker volume mount failed in Git Bash with Access is denied

docker: Error response from daemon: mkdir C:UsersUserwork: Access is denied.

Docker Desktop on Windows could not interpret the volume mount path correctly because Git Bash rewrote the command-line path before it reached Docker.

Access is deniedvolumes
docker: Error response from daemon: mkdir C:UsersUserwork: Access is denied.
  • Git Bash or MSYS rewrote the bind-mount source path before Docker received it.
  • The Windows path was passed in a format that Docker Desktop could not interpret correctly.
  1. Run the command with MSYS path conversion disabled, such as MSYS_NO_PATHCONV=1.
  2. Use a Docker-compatible Windows mount path format when running commands from Git Bash.
  3. If needed, run the command from PowerShell or cmd.exe to avoid Git Bash path rewriting.
Docker Docs: Common topics - Docker commands failing in Git Bash
Docker Access is denied in Git Bash: causes and fixes | Error Atlas