Название: Running GUI Applications in Docker Автор: Fraser Adams Издательство: Independently published Год: 2020 Страниц: 853 Язык: английский Формат: pdf, azw3, epub Размер: 14.6 MB
This book provides a comprehensive step-by-step guide to packaging and running GUI applications as Docker containers. The book sets the scene with some simple and well-known X11 applications hosted locally, before tackling more advanced topics such as enabling GPU acceleration in containers to support OpenGL applications. The book also covers several less-frequently discussed topics such as remote accelerated rendering via VirtualGL to enable Cloud hosting of high-end GUI applications, D-bus integration, AppArmor, real-time scheduling, and running full virtual desktops in containers.
Although this book covers many advanced Docker concepts it is not a tutorial on Docker and some familiarity with Docker would be useful, but not essential, as all of the examples come complete with detailed explanation and the command line instructions necessary to run them. As the point of the book is to illustrate the concepts by example the source code is, of course, freely available and Apache 2.0 Licensed on GitHub.
To run the examples a reasonably modern Linux distribution capable of running Docker and an X11 capable desktop are required. The OpenGL applications require either Nvidia or Open Source Mesa drivers although some OpenGL 2.1 applications should work with the VirtualBox virtual GPU.
Docker is a technology that provides a form of Operating System level virtualisation known as containerisation . Docker uses the resource isolation features of the Linux kernel such as cgroups, namespaces, and union mount filesystems to allow multiple isolated user space instances or containers to run within a single physical (or virtual) Linux instance with lower overhead than full virtual machines.