- Pull the latest docker image
sudo docker pull dpage/pgadmin4
- Stop the running container
sudo docker stop pgadmin
- Remove existing container
sudo docker rm pgadmin
or
sudo docker rm --force pgadmin
- 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
- To start docker container
sudo docker start pgadmin