Skip to content
Snippets Groups Projects
Select Git revision
  • 64d2c150db6150d06ff740065d736ddf68434011
  • master default protected
  • parallelistation_of_subdomain_loop
  • parallelistation_test
  • nonzero_gli_term_for_nonwetting_in_TPR
  • testing_updating_pwi_as_pwiminus1_into_calculation_of_pnwi
  • v2.2
  • v2.1
  • v2.0
  • v1.0
10 results

ldd-for-two-phase-flow-systems

  • Clone with SSH
  • Clone with HTTPS
  • Numerical experiments for LDD-TPR

    Manual how to set up latest fenix image in Docker

    Pull the latest fenics Docker image

    docker pull quay.io/fenicsproject/stable:latest

    Create docker container named LDD-TPR with graphical display, share folder pwd

    docker run --dns=129.69.252.252 -it --env HOST_UID=$(id -u $USER) --env HOST_GID=$(id -g $USER) --env DISPLAY=unix$DISPLAY --device /dev/dri --volume /tmp/.X11-unix:/tmp/.X11-unix:rw --volume $(pwd):/home/fenics/shared --name LDD-TPR quay.io/fenicsproject/stable:latest /bin/bash 

    If you want the container do be automatically deleted after exiting add --rm option.

    If you have trouble with internet connection inside the container use

    --dns=YOUR_DNS_SERVER

    Start LDD-TPR container and step into the container

    docker start LDD-TPR & docker exec -ti -u fenics LDD-TPR /bin/bash -l

    Usefull docker commands

    List all docker container

    docker ps -a

    Remove container

    docker rm $container

    Remove all stopped container

    docker container prune

    List all images

    docker images

    Remove image

    docker rmi $image

    Troubleshooting

    Problem

    1. I can't install packages via apt-get install inside the container

    2. I cannot create files or folders (no write permissions)

    Solution

    1. If the package is not found first apt-get update and then try again. If there is no connection check your dns settings.

    2. In the container, execute once the script Rechtesetup/setpermissions.sh to gain write access in /home/fenics/shared

       cd /home/fenics/shared/Rechtesetup & sudo ./setpermissions.sh

    Nützliche FEniCS Links