Docker Permission Issues
Error: Cannot connect to the Docker daemon... Permission denied
Error: Cannot connect to the Docker daemon... Permission denied
Error Message:Cause:This error occurs when your user account doesn’t have permission to access the Docker daemon. You either haven’t added your user to the
docker group, or you didn’t log out/log in after adding them.Solutions:Important Note:Depending on the specific configuration of your Linux distribution, there might be situations (for example, when trying to interact with the graphical interface from within a container) where using
sudo might still be necessary for some tasks, even if the user is a member of the docker group.Image Reference Issues
Error: invalid reference format
Error: invalid reference format
Error Message:Cause:This error typically occurs when:
- The image name is misspelled in the
docker runcommand - The image doesn’t exist locally
- There’s a syntax error in the Docker command
Image Not Found
Image doesn't exist locally
Image doesn't exist locally
Problem:You’re trying to run a container, but the
raylib_container image hasn’t been built yet.Solution:Build the Image
Build the image using one of these commands:
When building the image, Raylib is cloned and compiled directly from the official GitHub repository, ensuring you always have the latest version available.
Outdated or Corrupted Image
Need to rebuild the image
Need to rebuild the image
Session-Specific Issues
Display access lost after reboot or new session
Display access lost after reboot or new session
Problem:Graphics were working before, but after rebooting or starting a new graphical session, you get display errors.Cause:The
xhost +local:docker command needs to be run in each new graphical session.Solutions:The specific startup file depends on your desktop environment and login manager. Common options include
.profile, .xinitrc, .xprofile, or .bash_profile.