Avogadro 1.2 on Docker

By the way - for those looking to continue using Avogadro 1.2 on Ubuntu (20.4 and later) or Windows, you might want to check out the Grimme group’s “Avogadro Container” which packages Avogadro into a Docker container:

1 Like

Actually it looks like this was covered in previous threads:

I had a problem running this docker:

avogadro: cannot connect to X server :1

Running the docker with the flag --net=host solved the problem for me.

export XAUTH=/tmp/.docker.xauth
export XSOCK=/tmp/.X11-unix
docker run -it --net=host --rm \
       --volume=$XSOCK:$XSOCK:rw \
       --volume=$XAUTH:$XAUTH:rw \
       --env="XAUTHORITY=${XAUTH}" \
       --env="DISPLAY" \
       --env="QT_X11_NO_MITSHM=1" \