Run pgAdmin4 on Docker in Arch Linux

Running pgAdmin4 in Arch linux seem like some erros exits. I guess it about Python version conflict. So Docker is best choices for now. Set up Install Docker, of course! Pull image pgAdmin4: docker pull dpage/pgadmin4 Run script below: #!/bin/bash docker run --name pgadmin --network="host" -e "PGADMIN_DEFAULT_EMAIL=admin@admin.admin" -e "PGADMIN_DEFAULT_PASSWORD=admin" -d dpage/pgadmin4 ||true(nohup xdg-open http://localhost >/dev/null

Running pgAdmin4 in Arch linux seem like some erros exits. I guess it about Python version conflict.
So Docker is best choices for now.

Set up

  1. Install Docker, of course!
  2. Pull image pgAdmin4: docker pull dpage/pgadmin4
  3. Run script below:
#!/bin/bash

docker run --name pgadmin --network="host" 
-e "PGADMIN_DEFAULT_EMAIL=admin@admin.admin"
-e "PGADMIN_DEFAULT_PASSWORD=admin" -d dpage/pgadmin4 ||true(nohup xdg-open http://localhost >/dev/null 2>&1)&
  1. If localhost refuse to connect, just wait about few second, then reload again.

Notes

  • on close, the container is not close.
  • default email : admin@admin.admin, default password admin
  • a volume named “pgadmin” is create to store config

Nguồn: viblo.asia

Bài viết liên quan

9 Mẹo lập trình Web “ẩn mình” giúp tiết kiệm hàng giờ đồng hồ

Hầu hết các lập trình viên (kể cả những người giỏi) đều tốn thời gian x

Can GPT-4o Generate Images? All You Need to Know about GPT-4o-image

OpenAI‘s GPT-4o, introduced on March 25, 2025, has revolutionized the way we create visual con

Khi nào nên dùng main, section, article, header, footer, và aside trong HTML5

HTML5 đã giới thiệu các thẻ ngữ nghĩa giúp cấu trúc nội dung web một cách có

So sánh Webhook và API: Khi nào nên sử dụng?

Trong lĩnh vực công nghệ thông tin và phát triển phần mềm, Webhook và API là hai th