I have a bind mount issue when using Rancher Desktop + WSL. Hope to get some helps.
Problem: getting [docker:up] ⚠️ backend: /workspace/backend looks empty on the host (/mnt/wsl/rancher-desktop/run/docker-mounts/00f4cdcf-ba22-40a0-b682-3ffbd07af5cd/pyproject.toml)
• in docker-compose.yml file, volumes are defined as -
volumes:
- ./backend:/workspace/backend # source hot-reload
- ./packages/types:/workspace/packages/types
- ./packages/observability:/workspace/packages/observability
• and in dockerfile pyproject.toml file is supposed to be copied to /workspace/backend-
WORKDIR /workspace
COPY backend/pyproject.toml backend/
But there is a race situation when bring up container, we got an error saying-
[docker:up] ⚠️ backend: /workspace/backend looks empty on the host (/mnt/wsl/*rancher-desktop*/run/docker-mounts/00f4cdcf-ba22-40a0-b682-3ffbd07af5cd/pyproject.toml)
How to solve this issue? the odd part is, sometimes there is no such error. like yesterday everything worked but today nothing works. 😇