Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

227
Views
How to update the Pgadmin4 docker image?

How to update the Pgadmin4 docker image without losing any the user's information in the folder/var/lib/pgadmin?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

  1. Pull the latest docker image

    sudo docker pull dpage/pgadmin4

  2. Stop the running container

    sudo docker stop pgadmin

  3. Remove existing container

    sudo docker rm pgadmin

  4. Deploy/Run the latest images

    sudo docker run --name pgadmin -p 80:80 -v /var/lib/pgadmin:/var/lib/pgadmin -e 'PGADMIN_DEFAULT_EMAIL=m.thirumal@hotmail.com' -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 'PGADMIN_DEFAULT_EMAIL=m.thirumal@hotmail.com' -e 'PGADMIN_DEFAULT_PASSWORD=thirumal' -d dpage/pgadmin4

To start the docker container

`sudo docker start pgadmin`
over 4 years ago · Santiago Trujillo Report

0

The choosen answer is correct, but if you doesn't have any volume for your starting image yet you also have to do:

sudo docker cp name_of_your_image:/var/lib/pgadmin /var/lib/pgadmin

and

sudo chown -R 5050:5050 /var/lib/pgadmin
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!