Dockerfile implements the client to access the container's desktop and pseudo terminal through the Web page, the main tool is guacamole.
First of all, the Guacamole,guacamole is a VNC client based on HTML5 and Ajax technology, with which it can quickly access the Xwindows system interface on the VNC server directly through a Web browser. Youku has a video presentation on guacamole in http://v.youku.com/v_show/id_XMTg4ODgwNDg0.html
git on Dockerfile code: Http://git.oschina.net/wangyufu/docker_guacamole
Divided into three dockerfile, the Order of execution:
- Ubuntu-xfce-vnc-desktop base image is Ubuntu15.04
- Jdk-tomcat base image is Ubuntu-xfce-vnc-desktop
- Guacamole base image is Jdk-tomcat
The first dockerfile is to install the base image and some desktop environments, and the second dockerfile is to install the JDK and Tomcat based on the ubuntu-xfce-vnc-desktop mirror, because guacamole requires Java environment support, The following is the installation of guacamole. So every dockerfile code in the from needs to change its own.
The resolution of the Web display desktop needs to be ubuntu-xfce-vnc-desktop/supervisord.conf in the command=/usr/bin/xvfb:1-screen 0 1280x720x16 #修改合适的分辨率
SSH login user name, guacamole/startup.sh modify the created user name and password, Guacamole/user-mapping.xml modified to create the user name and password.
After all is done, you can log in, start the container, access the service-initiated address, and map to the container's 8080 port plus path to/guacamole
Enter the admin interface after logging in:
Select SSH:
Select VNC:
Problems encountered during installation of guacamole:
Issue: When you start Tomcat, the log invalid or unreadable WAR file:error in opening zip file
FIX: Install a ZIP package
Issue: When you start Tomcat, the journal no guacamole.properties file found within Guacamole_home or the classpath.
FIX: Create a new user home directory for the Tomcat program directory and assign permissions, add guacamole_home variables under/etc/profile and refresh.
Dockerfile implements the client to access the container's desktop and pseudo terminal through the Web page, the main tool is guacamole