FEniCS Docker on Windows 10 Workflow

Host: Windows 10
I have setup docker and tested some FEniCS examples in a container.
My problem is the workflow. I want to edit my codes in host and run them in container. The current solution would be to write codes, copy them in container then run them. Is this the only method?
Anyways I also have problem with transferring results from container to host(Windows 10).
For instance, I have solved a problem with FEniCS, I got a png format file and I want to save it on host. Again is the only solution running docker cp command and transferring the results?
I could not even properly use docker cp.
I have read the manual provided and it says for sharing files you have to use the following command:
docker run -ti -v $(pwd):/home/fenics/shared quay.io/fenicsproject/stable
What is the proper command similar to above for Windows 10?
For example, I have got my FEniCS codes in the following path on Windows
D:\FEniCS

See for instance: Mount current directory as a volume in Docker on Windows 10 - Stack Overflow

1 Like