2

I have Docker installed and running in Windows but using WSL 2 based engine. I have some files that are in WSL 2 and that I wand to copy into the image during the build.

COPY MY_FILES_IN_WSL /home/lector/

I could not figure out how to create the path to those files (it is /home/niels/Tei-xslt with WSL) since, obviously \wsl$ is not working in the Dockerfile but using the linux path as well does not work.

I always get a similar error message like this one:

failed to compute cache key: "/Tei-xslt" not found: not found
The terminal process "C:\Windows\System32\wsl.exe -e docker build --pull --rm -f "Dockerfile" -t melusina:latest "."" terminated with exit code: 1.

I also tried relative and absolute paths.

Is there a possibility to refer to those files?

2
  • Check this: stackoverflow.com/a/67944726/2777988 Commented Jan 24, 2022 at 15:27
  • thx. for the response but the referenced ticket is not our problem - at least something that should not work with this explanation works and the other way around Commented Jan 25, 2022 at 10:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.