Run Swing based GUI application within the Docker container through the Jetbrains Projector, and access it from browsers.
The easiest way to start a Swing GUI application inside a docker container is through the pre-built Docker image tuwen/projector:
docker run -it --rm --name projector \
-p 8887:8887 \
-v /path/to/swing-gui-application.jar:/opt/projector/swing-gui-application.jar \
tuwen/projector swing-gui-application.jar
When the server is launched, you can open localhost:8887 in the browser to access the app.
Specify the launching Main-Class for the jar archive:
docker run -it --rm --name projector \
-p 8887:8887 \
-v /path/to/swing-gui-application.jar:/opt/projector/swing-gui-application.jar \
tuwen/projector swing-gui-application.jar org.example.Main
A demo for Godzilla:

Same as Jetbrains Projector.
Content type
Image
Digest
Size
137.6 MB
Last updated
over 5 years ago
docker pull tuwen/projector