Mounts denied: The path is not shared to the host; when it is

Docker Desktiop runs a virtual machine. When you bind mount a folder from the host, that first has to be shared with the virtual machine. Go to the Docker Desktop settings, Resources and there File Sharing, and there share /media.