Problems with running fenics after updating

Hello everybody,

after updating docker I can’t run my fenicscode anymore.
I entered the command
docker run -ti quay.io/fenicsproject/stable:latest
and then I can execute the demo poisson. Unfortunately if I want to go to the shared path then shared is empty and I can’t get to the directory to run my code :(.

Can somebody please help me with this?

Thank you.

Your docker command does not share any directories.
To share directories you need to pass the -v argument, i.e.

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

Thank you again dokken for your reply and help.

Now I have no permissions to do anything? I am so sorry for the stupid questions.

You need to be more specific for me to help you here. I.e. show what error message you get and which command you are running.

Yes, of course. I am sorry.

% docker run -ti -v $(pwd):/home/fenics/shared -w /home/fenics/shared quay.io/fenicsproject/stable:latest
# FEniCS stable version image
Welcome to FEniCS/stable!

This image provides a full-featured and optimized build of the stable

release of FEniCS.

To help you get started this image contains a number of demo

programs. Explore the demos by entering the 'demo' directory, for

example:

cd ~/demo/python/documented/poisson

python3 demo_poisson.py

fenics@98d4a9871550:~/shared$ ls

ls: cannot open directory '.': Permission denied

fenics@98d4a9871550:~/shared$ cd MA

bash: cd: MA: Permission denied

fenics@98d4a9871550:~/shared$ cd

fenics@98d4a9871550:~$ cd demo

fenics@98d4a9871550:~/demo$ cd python

fenics@98d4a9871550:~/demo/python$ cd documented

fenics@98d4a9871550:~/demo/python/documented$ cd poisson

fenics@98d4a9871550:~/demo/python/documented/poisson$ ls

demo_poisson.py demo_poisson.py.rst **poisson_u.png**

fenics@98d4a9871550:~/demo/python/documented/poisson$ python3 demo_poisson.py

Calling FFC just-in-time (JIT) compiler, this may take some time.

Calling FFC just-in-time (JIT) compiler, this may take some time.

Calling FFC just-in-time (JIT) compiler, this may take some time.

Calling FFC just-in-time (JIT) compiler, this may take some time.

Calling FFC just-in-time (JIT) compiler, this may take some time.

Calling FFC just-in-time (JIT) compiler, this may take some time.

Solving linear variational problem.

To view figure, visit http://0.0.0.0:8000

Press Ctrl+C to stop WebAgg server

^CServer is stopped

fenics@98d4a9871550:~/demo/python/documented/poisson$ cd

fenics@98d4a9871550:~$ ls

WELCOME **demo** fenics.env.conf **local** **shared**

fenics@98d4a9871550:~$ cd shared

bash: cd: shared: Permission denied

fenics@98d4a9871550:~$

So as you can see I can’t do anything else then running the demo.

I cannot reproduce this error on my ubuntu 16.04.
However, have a look at:

and

Thank you. I will have a look