Installation on windows 10

Hello, I am installling fenics on windows 10.

Although download manual talk about docker quickstart terminal and docker tool box, docker throw them. So I cannot use them.

I use the windows power shell terminal, but the terminal told me that docker run -ti -v $(pwd):/home/fenics/shared Quay
bash: docker: command not found.
How can I fix it? Please help me.

What do you mean by throw them?

Also, if you powershell cannot find the command docker it likely means that you havent installed it.
I would suggest you have a look at: Install Docker Desktop on Windows | Docker Documentation

1 Like

‘throw’ means that docker doesn’t use the docker quick start terminal and docker toolbox. We can use only the docker desktop for windows. I installed the docker and I could check that.

But clearly you do not have docker in your powershell, as it cannot find the command.

Please see the below code I written in powershell. Do you think that I don’t have docker?

# 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

e]0;fenics@0c718c3ccfaf: ~afenics@0c718c3ccfaf:~$ cd ~/demo/python/documented/poisson

e]0;fenics@0c718c3ccfaf: ~/demo/python/documented/poissonafenics@0c718c3ccfaf:~/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

/stableics@0c718c3ccfaf: ~/demo/python/documented/poissonafenics@0c718c3ccfaf:~/demo/python/documented/poisson$ docker run -ti -v $(pwd):/home/fenics/shared quay.io/fenicsproject/

bash: docker: command not found

But here you ave already ran the code. It has executed as shown:

To me, it seems like you are trying to spawn a new docker container inside the docker container.

Thank you for your help. But it is not essential. Although I revised the code, docker told me that ‘command not found’. Please see the below code.

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@bc5591ef0831:~$ cd ~/demo/python/documented/poisson

fenics@bc5591ef0831:~/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@bc5591ef0831:~/demo/python/documented/poisson$ docker run -ti -v $(pwd):/home/fenics/shared quay.io/fenicsproject/stable
bash: docker: command not found

Please read my reply carefully. The commands you show above shows that you have started the docker container, and that you have been able to run the code, indicated by:

Then, for some reason unknown to me, you are trying to start another docker container inside the already launched container:

As docker is not installed inside the docker container, this throws an error.

1 Like