0

I am trying to run a docker container (rails, postgres, vite) on a Windows machine with the following setup -

WSL 2:

$ wsl.exe --status
Default Distribution: Ubuntu
Default Version: 2

Windows Subsystem for Linux was last updated on 11/22/2022
The Windows Subsystem for Linux kernel can be manually updated with 'wsl --update', but automatic updates cannot occur due to your system settings.
To receive automatic kernel updates, please enable the Windows Update setting: 'Receive updates for other Microsoft products when you update Windows'.
For more information please visit https://aka.ms/wsl2kernel.

Kernel version: 5.10.102.1

Docker:

Docker version 20.10.21, build baeda1f

docker-compose build succeeds where as docker-compose run --rm --entrypoint "/bin/setup" rails fails with the following error -

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "C:/Program": stat C:/Program: no such file or directory: unknown

The entry point file bin/setup is a bunch of rails commands like running migrations etc.,

Syed Aslam
  • 8,707
  • 5
  • 40
  • 54
  • This answer helped: https://stackoverflow.com/a/61020510/210273. It is how the path delimiters work in Windows. – Syed Aslam Nov 22 '22 at 16:38

0 Answers0