Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.1 KB

update_pgadmin4_docker_image.md

File metadata and controls

45 lines (32 loc) · 1.1 KB

Update PgAdmin4 docker image

  1. Pull the latest docker image
 sudo docker pull dpage/pgadmin4
  1. Stop the running container
sudo docker stop pgadmin
  1. Remove existing container
 sudo docker rm pgadmin
 or 
 sudo docker rm --force pgadmin
  1. Run the latest images
 sudo docker run --name pgadmin -p 80:80 -v /var/lib/pgadmin:/var/lib/pgadmin  -e '[email protected]' -e 'PGADMIN_DEFAULT_PASSWORD=thirumal' -d dpage/pgadmin4

or the below command for reverse proxy with ngnix

sudo docker run --name pgadmin -p 5050:80 -v /var/lib/pgadmin:/var/lib/pgadmin  -e '[email protected]' -e 'PGADMIN_DEFAULT_PASSWORD=thirumal' -d dpage/pgadmin4

Auto start the PgAdmin4 during the system boot

sudo docker run --restart always --name pgadmin -p 5050:80 -v /var/lib/pgadmin:/var/lib/pgadmin  -e '[email protected]' -e 'PGADMIN_DEFAULT_PASSWORD=thirumal' -d dpage/pgadmin4
  1. To start docker container
sudo docker start pgadmin

Pgadmin4.png