Skip to content

Instantly share code, notes, and snippets.

@michaelkl
Last active May 29, 2024 14:40
Show Gist options
  • Save michaelkl/e1a69e12879c2232121711ad40a4815c to your computer and use it in GitHub Desktop.
Save michaelkl/e1a69e12879c2232121711ad40a4815c to your computer and use it in GitHub Desktop.
Running an old pgAdmin III on a modern system using Docker
docker run \
-it --rm \
-e DISPLAY=$DISPLAY \
-e LC_ALL=C \
-v ${HOME}/.pgadmin3_home:/home \
-e HHHOME=${HOME} \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ${HOME}/.Xauthority:/root/.Xauthority \
--net host \
jancelin/docker-pgadmin3
[Desktop Entry]
Name=pgAdmin III
Icon=/usr/share/icons/hicolor/32x32/apps/pgadmin4.png
Exec={{path_to_pgadmin3.sh}}
Type=Application
Terminal=false
docker run \
-it --rm \
-e DISPLAY=$DISPLAY \
-e LC_ALL=C \
-v ${HOME}/.pgadmin3_home:/home \
-e HHHOME=${HOME} \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ${HOME}/.Xauthority:/root/.Xauthority \
--net host \
jancelin/docker-pgadmin3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment