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).
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).
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.
As I remember, I didn’t install Docker engine with docker.io and I only followed the instructions provided there .
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.
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.
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: