Aliro icon indicating copy to clipboard operation
Aliro copied to clipboard

Docker Desktop with WSL 2 Backend

Open jay-m-dev opened this issue 2 years ago • 1 comments

Running docker-compose using the docker-compose.yml does not work well.

Description The web app runs and the interface is accessible at localhost but the experiment results are not available.

Steps to Recreate

  1. Run docker-compose up (on a Windows machine using Docker Desktop with the WSL 2 Backend)
  2. Go to localhost:5080
  3. Upload a dataset
  4. Run an experiment
  5. The results will not be available.

Expected Behavior The experiment results should be available.

jay-m-dev avatar Aug 16 '22 17:08 jay-m-dev

So far, I've found the following:

  • Aliro works as expected using Docker Desktop with the Hyper-V backend.
  • using the docker-compose-production.yml file works as expected.

The issue seems to be related to how the volumes are defined in the docker-compose.yml file and how they are mounted on the Linux file system (WSL2) while the experiment results are on the Windows file system. It appears that the chokidar library (used as a file watcher by the machine) is not detecting the new files on the Windows file system. This may be related to / (forward slash) on Linux vs \ (backslash) on Windows.

This requires further testing to better understand the problem.

jay-m-dev avatar Aug 16 '22 17:08 jay-m-dev

Upon further testing, I found that this currently works when not mixing environments. If developing on Windows (in the Windows filesystem) developers need to ensure to use Hyper-V as the Docker Desktop backend. If the WSL2 backend is preferred for Docker Desktop, development needs to be done on WSL also (and it's best to enable integration with the chosen WSL distro in the Docker Desktop settings.)

jay-m-dev avatar Dec 28 '22 21:12 jay-m-dev