Hi all. I’ve started to experiment with DevKinsta. Installation was trouble-free, but when I try to use it via command-line with “/opt/DevKinsta/dev-kinsta”, the GUI starts up but immediately gives me message “DK0048: you don’t have the necessary privileges to start the docker client”.
I read the doc for the error at DevKinsta Error Codes - Kinsta®, but I’m concerned about changing permissions to 0666 for the docker port. Is it really necessary to open that to the whole world? Isn’t there a better way to get this done?
I think you can also just chmod that /var/run/docker.sock file to 0660 (which would make Others can’t read, can’t write and can’t execute it) instead of 0666 .
I also checked mine, and could see it’s set to 0660 and could still open/run my DevKinsta program just fine.
Thank your for your reply and update.
I’m still unable to reproduce this DK0048 error on my end and that /var/run/docker.sock file is still set to 0660 (I’m using Ubuntu 22.04.2 LTS, Docker Engine version 24.0.5, build ced0996, and DevKinsta 2.11.0 ).
I’m wondering what if you keep that /var/run/docker.sock file set to 0660, and try to add your user profile to the docker group with the following steps:
sudo groupadd docker
sudo usermod -aG docker yourlinuxuserhere
and please check with: getent group docker , see if yourlinuxuser is listed there (that might return with something like: docker:x:999:yourlinuxuserhere )
after that , please try to log out from your current linux session and re-login (or try to reboot if necessary), and may also want to restart the Docker service (to apply any configuration changes) with: sudo systemctl restart docker.service
then please try to access/open DevKinsta again and see if it’s loading fine?
If it’s still showing the same DK0048 error, then I think the workaround might be just to set that /var/run/docker.sock file set to 0666 (and may want to consider to temporarily give the permissions to your user profile for the current session only) as shown in that documentation.