A step-by-step guide for running GUI applications inside Docker Desktop containers on Linux with X11 display forwarding to the host. The key insight is using socat to bridge TCP port 6000 to the host's X11 Unix socket — a workaround required specifically for Docker Desktop (as opposed to Docker Engine). The guide covers building a Dockerfile with X11 dependencies, running socat, granting X11 access with xhost, and launching the container with the correct DISPLAY environment variable and host networking flags.
430 Impressions