Skip to content

Instantly share code, notes, and snippets.

@jmpinit
Last active December 30, 2019 12:51
Show Gist options
  • Select an option

  • Save jmpinit/8a3669cb78c5c1c99d7d8524ce019300 to your computer and use it in GitHub Desktop.

Select an option

Save jmpinit/8a3669cb78c5c1c99d7d8524ce019300 to your computer and use it in GitHub Desktop.
LXD profile for creating containers which can run graphical applications. https://owentrueblood.com/blog/containerizing-ros-with-lxd/
# LXD profile for creating containers which can run graphical applications. https://owentrueblood.com/blog/containerizing-ros-with-lxd/
# Based on the profile described at https://blog.simos.info/how-to-easily-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/
config:
environment.DISPLAY: :0
# Map our own uid and gid to 1000 in the container
# You may need to change the first number to your UID (use the `uid` command to find out what that is)
raw.idmap: both 1000 1000
description: GUI LXD profile
devices:
X0:
path: /tmp/.X11-unix/X0
source: /tmp/.X11-unix/X0
type: disk
mygpu:
type: gpu
name: gui
used_by:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment