Mounts denied. Can't configure shared paths from docker (on linux)

I am using a docker run command on terminal on linux and encountered this error:

Error response from daemon: Mounts denied:
the path /laserplasma/petros is not shared from the host and is not known to docker
You can configure shared paths from Docker → preferences → resources → file sharing

To fix the issue, I tried going to docker → resources → file sharing then entered the path /laserplasma/petros . However, Docker has been doing this for almost 30 minutes (running with the blue circle going around but not responding):

Evening wgn-

Were you able to resolve your issue? I had an odd bug with the loading wheel, I reinstalled and it corrected my issue.

May be its similar to the problem in OS X mentioned here.

I moved my source code from custom location to /home/Documents in Ubuntu 22.04.01 and this mounting command provided in Docker getting started tutorial is working without any issues.

docker run -dp 3000:3000 \
     -w /app -v "$(pwd):/app" \
     node:12-alpine \
     sh -c "yarn install && yarn run dev"