I am running windows and ubuntu looks like an app
@amy Sorry, I meant happen if you try to install docker inside the ubuntu app?
how am I gonna install docker inside
@amy, a simple google search gives you this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04 . Everything is command line based and should thus work.
I tried this, didnt work at the last step I got this message
System has not been booted with systemd as init system (PID 1). Canât operate.
And did you try any of the solutions suggested by google?
https://www.google.com/search?client=ubuntu&channel=fs&q=System+has+not+been+booted+with+systemd+as+init+system+(PID+1).+Canât+operate.&ie=utf-8&oe=utf-8
I tried this sudo /etc/init.d/docker start instead of sudo systemctl start docker and it says
- Starting Docker: docker
Does that mean it is done, I run the code again and still I am getting a the same error
As I do not use windows, I cannot help you further with this.
But as it says that it is starting docker have you tried to call docker --help
in your ubuntu shell?
when I type ~$ docker -v
i got this
Docker version 19.03.7, build 7141c199a2
but the code gives the same error
Which code gives the same error?
demo.hyperelasticity
But have you updated your docker image with docker pull quay.io/fenicsproject/dev:latest
And running: docker run -ti -v $(pwd):/home/fenics/shared -w /home/fenics/shared/ --rm quay.io/fenicsproject/dev:latest
it givesthis Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/create?fromImage=quay.io%2Ffenicsproject%2Fdev&tag=latest: dial unix /var/run/docker.sock: connect: permission denied
Run the commands with sudo in front
Then I got this :
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
You will have to Google these error and fix them yourself. It shouldnât be Too hard
I have upgraded my window 10 home and installed docker desktop, I want to run fenics in docker, by following the instructions here https://fenics.readthedocs.io/projects/containers/en/latest/
but it is not very clear to me. how should I run fenics after installing docker?
See section 2.3: https://fenics.readthedocs.io/projects/containers/en/latest/introduction.html#running-fenics-in-docker
which terminal should I use to type these commands