This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

run code in docker

0 votes

Hi,

I am running docker on my windows 8.1 machine. After getting the stable image of fenics I run the following:

docker run -ti -v $(pwd):/home/fenics/shared quay.io/fenicsproject/stable

but what is the path for (pwd) on my computer so that I can put my python files into it?

asked Mar 19, 2016 by babak FEniCS Novice (380 points)
retagged Mar 19, 2016 by babak

1 Answer

0 votes
 
Best answer

It will be the directory you run from. Try "pwd" to see it.

answered Mar 19, 2016 by chris_richardson FEniCS Expert (31,740 points)
selected Mar 19, 2016 by babak

the pwd command returns the following address:

/home/fenics/shared

but I can not find this on my windows pc.

How about running "pwd" before you start docker? Or is it "cwd" - I can't remember MSDOS commands...

Thanks, it worked. I found the pwd before starting docker.

...