Docker Error: Error response from daemon: invalid mount config for type “bind”: bind source path does not exist:
Error: Bind Source Path Does Not Exist
I got this error:
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/my_repo/.tmpwhen running this command:
docker compose up -d dbSolution 1: Create the path
It was easily solved for me by creating a .tmp directory at the location that is specified in the error message (for me it was the project root).
Solution 2: macOS — Enable Full Disk Access
Make sure Docker and terminal/iTerm2 have full disk access enabled in the macOS settings.
- Go to: macOS Settings » Security » Privacy » Full Disk Access.
- Add Docker.
- Add Terminal.
- Add iTerm2 (if you use this).
Solution 3: Windows — Update password
As per this Github thread, you may run into this on Windows after you change your Windows account password.
- Open Docker for Windows Settings.
- Click Shared Drives / Reset credentials
- Share drive once again.






