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

Finding results in docker

0 votes

Hi

I am trying to run the poisson demo in docker, and while everything seems to work properly, I can not find the results anywhere. I think I dont understand how to share the result-files between docker and the computer, as poisson.pvd can not be found. I would appreciate some help with this.

asked Nov 29, 2016 by haakon555 FEniCS Novice (330 points)

1 Answer

0 votes

What I would suggest is to start a docker container and share a folder on your local computer with the docker container using the '-v' option, e.g.:

docker run -ti -v $(pwd):/home/fenics/shared your_fenics_image

to share your pwd with the docker container.
Next, make sure that the output generated in your docker container is stored in the shared directory (in the example above /home/fenics/shared). So for the example you mentioned, change the file demo_poisson.py as:

outdir = '/home/fenics/shared/'
file   = File(outdir+"poisson.pvd")

Data stored in this shared folder is also accessible from your local computer.

answered Nov 29, 2016 by jmmal FEniCS User (5,890 points)

Hi

When i try your suggestion I get the message bash: docker: command not found.

Any idea about what that means?

  1. Make sure docker is installed properly
  2. Run the command I suggested on your host computer (and not in a docker container).
  3. You may need sudo privilege for executing the command.

Hope this helps? Otherwise, an extensive guide of using the FEniCS docker images can be found here.

...