# Cannot Run DevKinsta Without Root Docker

**URL:** https://community.kinsta.com/t/cannot-run-devkinsta-without-root-docker/2261
**Category:** Installation
**Created:** [May 13, 2023, 8:59pm UTC](https://community.kinsta.com/t/cannot-run-devkinsta-without-root-docker/2261 "2023-05-13T20:59:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sleadership](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@sleadership](https://community.kinsta.com/u/sleadership)
#### Post date: [May 13, 2023, 8:59pm UTC](https://community.kinsta.com/t/cannot-run-devkinsta-without-root-docker/2261/1 "2023-05-13T20:59:19Z")

</div>

Hello,

I have spent about 6 hours trying to install DevKinsta on a ubuntu instance and it keeps going in circles.

The issue I am running into is DevKinsta is always trying to use the root docker instance, even if it is not installed. If I completely remove DevKinsta, and docker desktop, and any other docker components, when I get to the point where I am installing DevKinsta it still wants root.

I know this because I run the application and it immediately pops up an authentication window looking for my root user (ubuntu) because it wants to start docker. If I run dev-kinsta from the command line I can see in the logs that ‘unix:///var/run/docker.sock’ isn’t running. (Of course its not, docker is not installed).

The only way I have been able to get this to work is doing a soft link pointing /var/run/docker.sock → ~/.docker/desktop/docker.sock, which is of course quite a hack. Having said that, the application still keeps asking me for the root’s password as it goes along while doing a pull, only to have “Something bad happen” pulling a site.

20:58:09.145 › [ipcMainStep] Error in operation SITE\_CREATION, step rsync: Error: Encountered an error in child process 20536: 125. docker: Error response from daemon: Conflict. The container name “/devkinsta\_create\_import\_126f90459e5d480ead15a7c59de97dcc” is already in use by container “57e6b8fe967008514dd6604568371bd13206ea20d46992199d023fef092d2a5e”. You have to remove (or rename) that container to be able to reuse that name.

Any thoughts on why the application is so hell bent on getting root access? (I assume that this is a symptom of something else).

Thanks,  
Mike C

---

<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: [May 15, 2023, 2:29am UTC](https://community.kinsta.com/t/cannot-run-devkinsta-without-root-docker/2261/2 "2023-05-15T02:29:01Z")

</div>

Hello @sleadership Mike 👋 , Welcome to DevKinsta community!

I myself also use Linux Ubuntu (22.04.2 LTS currently) and only installed [Docker Engine](https://docs.docker.com/engine/install/ubuntu/) ( **without** Docker Desktop) and I’ve been able to use DevKinsta just fine.

From my linux terminal, if run this: `docker context list`  
I would get the following:

 ![Screenshot from 2023-05-15 09-08-02](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/c/c154a619adae1b96b769869b69bed89a1a5eeeb3.png)

Both paths to that “docker.sock” look like these on my computer:

> agus@Lenovo-IdeaPad-FLEX-15IWL:~$ **ll /var/run/docker.sock**  
> srw-rw---- 1 root docker 0 Mei 8 09:30 **/var/run/docker.sock** =

> agus@Lenovo-IdeaPad-FLEX-15IWL:~$ **ll ~/.docker/desktop/docker.sock**  
> srwxrwxr-x 1 agus agus 0 Feb 11 21:26 **/home/agus/.docker/desktop/docker.sock** =

Each time I open/launch DevKinsta, it would ask me to enter the password of my Linux user account:

 ![Screenshot from 2023-05-15 08-59-45](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/87e6d636612a71bb773773280e560458d86bb702.png)

and once I entered my user’s password, DevKinsta would open just fine and I could use it to create local site(s) and run the site(s) properly - and no errors.

Perhaps you may want to try to first un-link that `/var/run/docker.sock → ~/.docker/desktop/docker.sock `

then please run this command line:

> `docker context list`

and please see if the asterisk (\*) is shown next to the “_desktop-linux_” instead of next to the “_default_” - similar to the screenshot I provided above ?  
If that so, please try to run this command line (to switch the context to _Docker Engine_):

> `docker context use default`

If it’s still does not work, I would suggest to try to remove/uninstall both DevKinsta and Docker Desktop and try to install **Docker Engine only** and re-install DevKinsta - and see if that will work fine (which worked for me).

Hope that helps! 🤞

Cheers,  
Agus

---

<div class="post-metadata">

### Author: ![sleadership](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@sleadership](https://community.kinsta.com/u/sleadership)
#### Post date: [May 15, 2023, 10:17am UTC](https://community.kinsta.com/t/cannot-run-devkinsta-without-root-docker/2261/3 "2023-05-15T10:17:26Z")

</div>

Hello.

I did what you recommended. I installed docker.  
`sudo apt install docker.io`

I then changed context back to default.  
`docker context use default`

I also then stopped and deleted containers in both contexts. And then loaded dev-kinsta.

I keep running into the issue where dev-kinsta is getting a permission denied when trying to edit the wp-config. The reason is because the application is running in a mixed user mode. (root and my user). The containers are running as root, and the app is running as my user.

 ![Screen Shot 2023-05-15 at 6.12.25 AM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/d/d592bfae4fbe888f3c6be82727ed762427c6036d.png)

In order to move forward I have to recursive chmod the DevKinsta directory. (each and every time i do a pull/sync).

I’ll note this causes later issues when I try to upload things, like plugins and the container can no longer write to the disk because its my user’s directory.

I’d assume for this to work smoothly either the entire process should be run as ubuntu (the super user), or everything (including docker) should be run as my user. (docker-desktop).

Thoughts?

---

<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: [May 16, 2023, 3:31am UTC](https://community.kinsta.com/t/cannot-run-devkinsta-without-root-docker/2261/5 "2023-05-16T03:31:52Z")

</div>

Thank you for your reply and update Mike!

As I remember, I didn’t install Docker engine with `docker.io` and I only followed the instructions provided [there](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository) .  
That `docker.io` name seems to be an older version of Docker as mentioned on that page?  
Maybe you may want to try to uninstall that old one and setup / re-install docker engine from [Docker’s `apt` repository](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository).

Here’s what I have installed on my Linux Ubuntu:

> agus@Lenovo-IdeaPad-FLEX-15IWL:~$ **apt list --installed | grep “docker|containerd”**
> 
> WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
> 
> **containerd**.io/jammy,now 1.6.21-1 amd64 [installed]  
> **docker** -buildx-plugin/jammy,now 0.10.4-1~ubuntu.22.04~jammy amd64 [installed]  
> **docker** -ce-cli/jammy,now 5:23.0.6-1~ubuntu.22.04~jammy amd64 [installed]  
> **docker** -ce-rootless-extras/jammy,now 5:23.0.6-1~ubuntu.22.04~jammy amd64 [installed,automatic]  
> **docker** -ce/jammy,now 5:23.0.6-1~ubuntu.22.04~jammy amd64 [installed]  
> **docker** -compose-plugin/jammy,now 2.17.3-1~ubuntu.22.04~jammy amd64 [installed]  
> **docker** -scan-plugin/jammy,now 0.23.0~ubuntu-jammy amd64 [installed,auto-removable]  
> agus@Lenovo-IdeaPad-FLEX-15IWL:~$

When you launched DevKinsta, were you asked to enter the password for your Linux user account to run “_/bin/bash_” as the super user (as shown in the screenshot I sent you previously)?  
And just to clarify my linux user account (_agus_) has sudo rights (part of the sudo group). Your linux user account has sudo rights as well right?

Also as I can see, my ~/DevKinsta folder and the ~/DevKinsta/public/ sub-folder have “_root:root_” user/group access, while the site’s sub-folders and its files have “_agus:agus_” user/group access (with _0777_ permission) and I’ve never altered/changed them manually (and have been able to create new sites as well as import sites from my MyKinsta account just fine).

Here are screenshots of how my DevKinsta and its sub-folders/files look like:

 ![Screenshot from 2023-05-16 08-25-40](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/b/ba4e7cfe8a215129552cfc0488738c8b1ad18c70.png)  
 ![Screenshot from 2023-05-16 08-25-59](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/1/1a110f0c527fd9e5bc17dd9bef3b2d91199b3a4a.png)  
and screenshots showing the DevKinsta and docker processes run (in mixed user mode, my linux user and root as well):  
 ![Screenshot from 2023-05-16 08-27-33](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/3/39169bd1d0accbc5345b60f5b573264d1e25951e.png)  
 ![Screenshot from 2023-05-16 10-16-00](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/9/9321d9a450f2d86fee3e3fd735a5ab245c30afda.png)

Regards,  
Agus
