You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the great effort on DBSeer! I am currently running DBSeer on AWS instance using the DBSeer Docker image, however, I couldn't start the UI correctly based the "Docker Usage Guide for DBSeer.pdf".
Here are my steps to fix this:
enable the X11 forwarding on aws instance
install and start Xming on my local Windows laptop
ssh to the aws instance and pull the DBSeer image
echo $DISPLAY to check if it is the current_ip:11.0
use DISPLAY_NUMBER=$(echo $DISPLAY | cut -d. -f1 | cut -d: -f2) to set the DISPLAY_NUMBER, which is 11 here
use socat TCP4:localhost:60${DISPLAY_NUMBER} UNIX-LISTEN:/tmp/.X11-unix/X${DISPLAY_NUMBER} & to set the DISPALY inside and outside the docker correctly
use the docker run -e DISPLAY -v /var/lib/postgresql/11/main/:/dbseer/dataset -v /tmp/.X11-unix/:/tmp/.X11-unix -v /root/.Xauthority:/root/.Xauthority --net=host --rm dongyoungy/dbseer /run_dbseer to start the UI, the .Xauthority should be mounted to the /root/ not /developer/ since the default user to the image is root.
Hi, thanks for the great effort on DBSeer! I am currently running DBSeer on AWS instance using the DBSeer Docker image, however, I couldn't start the UI correctly based the "Docker Usage Guide for DBSeer.pdf".
Here are my steps to fix this:
DISPLAY_NUMBER=$(echo $DISPLAY | cut -d. -f1 | cut -d: -f2)
to set the DISPLAY_NUMBER, which is 11 heresocat TCP4:localhost:60${DISPLAY_NUMBER} UNIX-LISTEN:/tmp/.X11-unix/X${DISPLAY_NUMBER} &
to set the DISPALY inside and outside the docker correctlydocker run -e DISPLAY -v /var/lib/postgresql/11/main/:/dbseer/dataset -v /tmp/.X11-unix/:/tmp/.X11-unix -v /root/.Xauthority:/root/.Xauthority --net=host --rm dongyoungy/dbseer /run_dbseer
to start the UI, the .Xauthority should be mounted to the /root/ not /developer/ since the default user to the image is root.Now I can start the UI.
reference: https://blog.yadutaf.fr/2017/09/10/running-a-graphical-app-in-a-docker-container-on-a-remote-server/
The text was updated successfully, but these errors were encountered: