Skip to content

Instantly share code, notes, and snippets.

@tojibon tojibon/readme.md
Last active Nov 29, 2018

Embed
What would you like to do?
Installing pgAdmin4 on Linux Ubuntu by Docker Container

Without Persistent Data

docker pull dpage/pgadmin4
docker run -p 8082:80 \
-e "PGADMIN_DEFAULT_EMAIL=tojibon@gmail.com" \
-e "PGADMIN_DEFAULT_PASSWORD=pg" \
-d dpage/pgadmin4
docker ps
docker exec -i -t b22b57044e6e /bin/sh
docker stop 7d7dc3d095af
docker start 7d7dc3d095af
docker rm 7d7dc3d095af

With Persistent Data

docker volume create --name pgadmin
docker volume inspect pgadmin
docker run -d -v pgadmin:/var/lib/pgadmin -p 8084:80 -e "PGADMIN_DEFAULT_EMAIL=tojibon@gmail.com" -e "PGADMIN_DEFAULT_PASSWORD=pg" dpage/pgadmin4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.