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

7 Cách Tăng Tốc Ứng Dụng React Hiệu Quả Mà Bạn Có Thể Làm Ngay

React là một thư viện JavaScript phổ biến trong việc xây dựng giao diện người d

Trung Quốc “thả quân bài tẩy”: hàng loạt robot hình người!

MỘT CUỘC CÁCH MẠNG ROBOT ĐANG HÌNH THÀNH Ở TRUNG QUỐC Thượng Hải, ngày 13/5 –

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