I am using docker-compose up -d --build
to create an image of a django project on ubuntu 20.04. I created Dockerfile
and docker-compose.yml
. I faced with an error while building it:
✔ Container postgres Started ⠙ Container app Starting Error response from daemon: Mounts denied: The path /media/shokouh/51eb51ef-6583-499a-81b4-5f3f2e6acac2/codes/SmartFactorySystem is not shared from the host and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing. See https://docs.docker.com/ for more info.
what shall I do to solve it?