tomsik68 / docker-xampp

Dockerfile to build an image containing XAMPP(MySQL + PHP + PHPMyAdmin) running on Debian system with SSH server
https://hub.docker.com/r/tomsik68/xampp/
MIT License
193 stars 109 forks source link

denied #63

Open ebelouet opened 5 months ago

ebelouet commented 5 months ago

Hi,

I don't have permission, where is mistake ? docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'. sincerely Eric

tomsik68 commented 5 months ago

Hey Eric, it looks like you're running docker on Linux. Usually after installing docker, you need to add your user to a special group of users that allows you to access the docker socket - this group is usually named docker. Try googling "Docker CLI as non-root on ". After adding yourself to that group, you need to logout and log back in.

If you want to be able to run the docker CLI command as a non-root user, add your user to the docker user group, re-login, and restart docker.service.

For example, here's an archlinux wiki article about it.