apazga / docker-pgmodeler

pgModeler running in a Docker container
https://hub.docker.com/r/apazga/docker-pgmodeler
MIT License
27 stars 7 forks source link

Install on M1 Mac (running Sonoma) Failed #11

Open bdrhoa opened 6 months ago

bdrhoa commented 6 months ago

I'm not sure if I did something wrong or not, but I couldn't get this work on my M1 Mac (running Sonoma).

./run_macos.sh
access control disabled, clients can connect from any host
HOST_IP: 192.168.1.235
Unable to find image 'apazga/docker-pgmodeler:1.1.0' locally
1.1.0: Pulling from apazga/docker-pgmodeler
01007420e9b0: Pull complete
84468a1d9db1: Pull complete
4f4fb700ef54: Pull complete
e2c1cf881a89: Pull complete
121dc5ebe34b: Pull complete
79df955cbd06: Pull complete
447d4c352730: Pull complete
Digest: sha256:22de87f1c1f2c68c5d8379b87b896127a5e5cb699ab5434c1a0c13c753742276
Status: Downloaded newer image for apazga/docker-pgmodeler:1.1.0
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
qt.qpa.xcb: could not connect to display 192.168.1.235:0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb.

qt.qpa.xcb: could not connect to display 192.168.1.235:0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb.

Aborted
kuchejak commented 1 day ago

I had to open the XQuartz program (looks like a small terminal when opened) before executing the launch script, but everything is working fine now (M1 Pro).

Also I believe that XQuartz should be installed using the --cask option for homebrew, see https://formulae.brew.sh/cask/xquartz (I think that this was missing the instructions I was following).