# DK0048: you don't have the necessary privileges to start the docker client

**URL:** https://community.kinsta.com/t/dk0048-you-dont-have-the-necessary-privileges-to-start-the-docker-client/2395
**Category:** Questions
**Created:** [July 31, 2023, 3:07pm UTC](https://community.kinsta.com/t/dk0048-you-dont-have-the-necessary-privileges-to-start-the-docker-client/2395 "2023-07-31T15:07:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Scott\_Thomason](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/scott_thomason/32/2229_2.png) [@Scott\_Thomason](https://community.kinsta.com/u/Scott_Thomason)
#### Post date: [July 31, 2023, 3:07pm UTC](https://community.kinsta.com/t/dk0048-you-dont-have-the-necessary-privileges-to-start-the-docker-client/2395/1 "2023-07-31T15:07:10Z")

</div>

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®](https://kinsta.com/knowledgebase/devkinsta/error-codes/#dk0048), 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?

---

<div class="post-metadata">

### Author: ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)
#### Post date: [August 1, 2023, 12:33am UTC](https://community.kinsta.com/t/dk0048-you-dont-have-the-necessary-privileges-to-start-the-docker-client/2395/2 "2023-08-01T00:33:33Z")

</div>

Heya there @Scott_Thomason , welcome to our community!

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.

> agus@Lenovo-IdeaPad-FLEX-15IWL:~$ ll /var/run/docker.sock  
> srw-rw---- 1 root docker 0 Jul 25 13:58 /var/run/docker.sock=

> agus@Lenovo-IdeaPad-FLEX-15IWL:~$ stat /var/run/docker.sock  
> File: /var/run/docker.sock  
> Size: 0 Blocks: 0 IO Block: 4096 socket  
> Device: 19h/25d Inode: 14510 Links: 1  
> Access: (0660/srw-rw----) Uid: ( 0/ root) Gid: ( 999/ docker)

So you may want to give it a try (to set it to `0660`) and run DevKinsta - see if it’s running properly.

Regards,  
Agus

---

<div class="post-metadata">

### Author: ![Scott\_Thomason](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/scott_thomason/32/2229_2.png) [@Scott\_Thomason](https://community.kinsta.com/u/Scott_Thomason)
#### Post date: [August 1, 2023, 10:15am UTC](https://community.kinsta.com/t/dk0048-you-dont-have-the-necessary-privileges-to-start-the-docker-client/2395/3 "2023-08-01T10:15:49Z")

</div>

I changed it to 660, but that takes me back to where I was, receiving the error DK0048.

---

<div class="post-metadata">

### Author: ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)
#### Post date: [August 2, 2023, 1:15am UTC](https://community.kinsta.com/t/dk0048-you-dont-have-the-necessary-privileges-to-start-the-docker-client/2395/5 "2023-08-02T01:15:50Z")

</div>

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:

1. `sudo groupadd docker`
2. `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.

Regards,  
Agus
