# Avogadro 1.2 on Docker

**URL:** <https://discuss.avogadro.cc/t/avogadro-1-2-on-docker/3948>\
**Category:** General Discussion\
**Created:** [August 29, 2022, 6:00pm UTC](https://discuss.avogadro.cc/t/avogadro-1-2-on-docker/3948 "2022-08-29T18:00:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [August 29, 2022, 6:00pm UTC](https://discuss.avogadro.cc/t/avogadro-1-2-on-docker/3948/1 "2022-08-29T18:00:56Z")

</div>

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:

> **[GitHub - grimme-lab/avogadro-container: Container version of avogadro1 for distros not...](https://github.com/grimme-lab/avogadro-container)**
>
> Container version of avogadro1 for distros not supporting avogadro1 anymore

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [August 29, 2022, 6:31pm UTC](https://discuss.avogadro.cc/t/avogadro-1-2-on-docker/3948/2 "2022-08-29T18:31:09Z")

</div>

Actually it looks like this was covered in previous threads:

> [@Running Avogadro on Docker](https://discuss.avogadro.cc/t/running-avogadro-on-docker/3377):
>
> I tried to use docker to run the older avogadro because many modern linux distro depreciate some of its dependencies already. I ran avogadro on openSUSE Tumbleweed with Ubuntu 18.04 container. First install docker on your distro. To avoid running docker with sudo all the time. sudo groupadd docker sudo usermod -aG docker $USER then logout and login Enable docker service with sudo systemctl docker Create Dockerfile with content as follows. FROM ubuntu:18.04 RUN apt update && apt ins…

---

<div class="post-metadata">

**Author:** ![basillicus](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/basillicus/32/1230_2.png) [@basillicus](https://discuss.avogadro.cc/u/basillicus)\
**Post date:** [September 23, 2022, 9:29am UTC](https://discuss.avogadro.cc/t/avogadro-1-2-on-docker/3948/3 "2022-09-23T09:29:20Z")

</div>

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.

```auto
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" \
       ghcr.io/awvwgk/avogadro

```
