We compute our first example with Xlab: a catenoid. This post is a continuation of this one, where we installed the Xlab container.

  1. Open acces to X:
xhost +local:

Remember to close the access when you are done with Xlab.

  1. Run an Xlab container:
docker run -it --rm --volume=/tmp/.X11-unix:/tmp/.X11-unix --device=/dev/dri/card0:/dev/dri/card0 --env "DISPLAY=$DISPLAY" --network="host" xlab
  1. Inside the container, compute an example:
xlab --compute --gui=gtk xlab/experiments/minimal/catenoid.xlab
  1. Have fun. You cannot break the container from within.

  2. Close the XLab windows and exit the container:

exit
  1. Close access to X:
xhost -local:

Now you may want to export your experiments.