# docker: Error response from daemon: error while mounting volume '/host/path': permission denied

- **ID:** `docker/volume-mount-permission-denied-on-host`
- **Domain:** docker
- **Category:** system_error
- **Verification:** ai_generated
- **Fix Rate:** 88%

## Root Cause

Docker daemon lacks read/write permission on the host directory specified in a bind mount.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| Docker 23.0.6 | active | — | — |
| Docker 24.0.2 | active | — | — |

## Workarounds

1. **Run 'sudo chown -R root:root /host/path' or adjust permissions to 755 to ensure Docker daemon (running as root) can access the directory.** (90% success)
   ```
   Run 'sudo chown -R root:root /host/path' or adjust permissions to 755 to ensure Docker daemon (running as root) can access the directory.
   ```
2. **If using SELinux, run 'sudo chcon -Rt svirt_sandbox_file_t /host/path' to set proper context for Docker volumes.** (85% success)
   ```
   If using SELinux, run 'sudo chcon -Rt svirt_sandbox_file_t /host/path' to set proper context for Docker volumes.
   ```

## Dead Ends

- **** — Running container with --privileged flag ignores the underlying permission issue and may cause security risks. (40% fail)
- **** — Changing volume path to a different directory without fixing host permissions repeats the error. (80% fail)
