JavaEar 专注于收集分享传播有价值的技术资料


  1. Containers don't have a windows manager, so if you want to run GUI applications you need (e.g.) XQuartz / X11 on your Mac and have the container attach to this. This is a bit tricky, and may, or may not work. A longer discussion with hint to get this working, can be found in the Docker issue tracker;

    However, pgAdmin 4 has an option to run through a webserver, which makes it better suitable for running in a container. I created a (very simple/minimal) pgAdmin image that can be run on Docker;, and allows you to access pgAdmin by publishing port 5050 (note the default configuration does not have access control / password protection enabled, so be sure you don't publish the port on a publicly accessible host)