sudo.
Docker Installation
You must have Docker installed on your system. If you don’t have Docker yet:Download Docker
Visit the official Docker website and download Docker Desktop for your operating system.
Install Docker
Follow the installation wizard for your platform. On Linux, you can also install Docker Engine directly through your package manager.
X11 Display Access (Linux)
This section applies to Linux users. macOS users should install and configure XQuartz instead.
Enable Display Access
Allow local Docker containers to connect to your graphics server:
This command usually needs to be run in each new graphical session or after rebooting the system. Consider adding it to your startup scripts like
.profile, .xinitrc, or .bash_profile.Docker Group Configuration (Recommended)
Adding your user to thedocker group removes the need to use sudo for Docker commands.
Log Out and Back In
The simplest way is to completely log out of your desktop session and log back in. Alternatively, reboot your system:
Verify Group Membership
After logging back in, verify you’re in the docker group:You should see
docker in the list of groups.Depending on your Linux distribution’s specific configuration, there might be rare situations where
sudo is still necessary for certain tasks (like opening the display from within a container), even with docker group membership.Graphics Hardware Requirements
For optimal performance, Raylib Container can use your GPU through hardware acceleration:- Linux: The container maps
/dev/dridevices for Direct Rendering Infrastructure (DRI) access - Fallback: Software rendering is available if hardware acceleration doesn’t work
Verifying Graphics Device Access
Verifying Graphics Device Access
Check if your system has DRI devices available:You should see devices like
card0, renderD128, etc. If you don’t see these, you’ll need to use software rendering mode.Security Considerations
If you accidentally changed the socket permissions, restore them:660 with owner root and group docker.
Reverting Configuration Changes
If you need to undo the changes made during setup:Revoke Display Access
Revoke Display Access
Remove User from Docker Group
Remove User from Docker Group