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 :(.
% 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.