is it possible to copy local development machine folder to remote docker host?
Answered
I have a Rider with a configured remote docker host via Engine API URL
I'm able to connect and build images, but when I try to run the following one
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2
EXPOSE 5000
COPY publish/ app/
ENTRYPOINT ["dotnet", "proj.dll"]
I'm getting a reasonable error
Error: ResponseItem.ErrorDetail[code=<null>,message=COPY failed: stat /var/lib/docker/tmp/docker-builder550087108/publish: no such file or directory]
Because that dir is not copied on remote host, though exists in project folder on my local machine.
is it possible to map (or scp) local directory to remote Docker host to make this script work?
Please sign in to leave a comment.
Check the path mapping settings: https://www.jetbrains.com/help/idea/docker.html.
Rider specific support is available at https://rider-support.jetbrains.com/hc/en-us .