Dockerfile implements the client to access the container's desktop and pseudo terminal through the Web page, the main tool is guacamole

Source: Internet
Author: User

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:

    1. Ubuntu-xfce-vnc-desktop base image is Ubuntu15.04
    2. Jdk-tomcat base image is Ubuntu-xfce-vnc-desktop
    3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.