xpra icon
Bug tracker and wiki

Changes between Version 17 and Version 18 of Usage/Docker


Ignore:
Timestamp:
11/23/16 11:13:55 (3 years ago)
Author:
mviereck
Comment:

Added infos and link to x11docker, providing a simple solution to use xpra with docker

Legend:

Unmodified
Added
Removed
Modified
  • Usage/Docker

    v17 v18  
    99Xpra and docker can be used to isolate applications from unix user accounts.
    1010
    11 Regular unix applications have full access to '''all the files''' in the user's home directory.
     11Depending on chosen setup, regular unix applications can have full access to '''all the files''' in the user's home directory.
    1212
    1313For example, it can be used to constrain a web browser (or a proprietary application like Skype) to the resource it really needs to run and no more.
     
    1919
    2020* [http://docker.io/ Docker]
     21* [https://github.com/mviereck/x11docker x11docker] can run GUI applications in docker images using xpra. It has no dependencies inside of docker images.
    2122* [https://subgraph.com/sgos/graph/index.en.html OZ] doesn't use Docker but runs applications in containers and hooks them up to X11 using xpra.
    2223* [https://github.com/subuser-security/subuser Subuser] tries to wrap the solution to make it more easily accessible - the [http://subuser.org/news/0.3.html 0.3] release adds XPRA support.
     
    3637Your options are:
    3738* using a TCP socket or running an SSH server in the container - neither are very practical
     39* using x11docker on host, you can run GUI applications in docker images like in this example:
     40{{{x11docker --xpra x11docker/lxde pcmanfm}}}
    3841* sharing the xpra socket directory between the host and the container. To do this you have multiple options:
    3942 * bind mount the directory containing the socket ({{{.xpra}}} or {{{/tmp}}} usually)