DK0006 Couldn't download docker images

I have set up my docker and it was working. Now when I returned to it I am getting this error:

DK0006 Couldn’t download docker images

My log says:

[2023-05-25 11:10:13.424] [info] [dockerUtil/getImage] Get Docker image, name: kinsta/devkinsta_nginx:1.3.1
[2023-05-25 11:10:13.425] [info] [dockerUtil/isImageUpToDate] Check if ‘kinsta/devkinsta_nginx’ Docker image is up to date
[2023-05-25 11:10:13.426] [warn] [dockerUtil/isImageUpToDate] Failed to inspect image undefined
[2023-05-25 11:10:13.429] [info] [dockerUtil/pullImage] Pull Docker image. name: kinsta/devkinsta_nginx, version: 1.3.1
[2023-05-25 11:10:13.438] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:10:13.443] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:39:12.963] [info] [dockerUtil/getImage] Get Docker image, name: kinsta/devkinsta_nginx:1.3.1
[2023-05-25 11:39:12.965] [info] [dockerUtil/isImageUpToDate] Check if ‘kinsta/devkinsta_nginx’ Docker image is up to date
[2023-05-25 11:39:12.967] [warn] [dockerUtil/isImageUpToDate] Failed to inspect image undefined
[2023-05-25 11:39:12.968] [info] [dockerUtil/pullImage] Pull Docker image. name: kinsta/devkinsta_nginx, version: 1.3.1
[2023-05-25 11:39:12.971] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:39:12.972] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:39:14.927] [info] [dockerUtil/getImage] Get Docker image, name: kinsta/devkinsta_nginx:1.3.1
[2023-05-25 11:39:14.927] [info] [dockerUtil/isImageUpToDate] Check if ‘kinsta/devkinsta_nginx’ Docker image is up to date
[2023-05-25 11:39:14.928] [warn] [dockerUtil/isImageUpToDate] Failed to inspect image undefined
[2023-05-25 11:39:14.929] [info] [dockerUtil/pullImage] Pull Docker image. name: kinsta/devkinsta_nginx, version: 1.3.1
[2023-05-25 11:39:14.930] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:39:14.931] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:39:35.302] [info] [dockerUtil/getImage] Get Docker image, name: kinsta/devkinsta_nginx:1.3.1
[2023-05-25 11:39:35.303] [info] [dockerUtil/isImageUpToDate] Check if ‘kinsta/devkinsta_nginx’ Docker image is up to date
[2023-05-25 11:39:35.304] [warn] [dockerUtil/isImageUpToDate] Failed to inspect image undefined
[2023-05-25 11:39:35.305] [info] [dockerUtil/pullImage] Pull Docker image. name: kinsta/devkinsta_nginx, version: 1.3.1
[2023-05-25 11:39:35.306] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:39:35.307] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:39:36.173] [info] [dockerUtil/getImage] Get Docker image, name: kinsta/devkinsta_nginx:1.3.1
[2023-05-25 11:39:36.173] [info] [dockerUtil/isImageUpToDate] Check if ‘kinsta/devkinsta_nginx’ Docker image is up to date
[2023-05-25 11:39:36.174] [warn] [dockerUtil/isImageUpToDate] Failed to inspect image undefined
[2023-05-25 11:39:36.174] [info] [dockerUtil/pullImage] Pull Docker image. name: kinsta/devkinsta_nginx, version: 1.3.1
[2023-05-25 11:39:36.175] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:39:36.176] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:39:40.364] [info] [main.dev.ts] Create tray icon
[2023-05-25 11:39:40.392] [info] [main.dev.ts] close setting: true
[2023-05-25 11:39:40.407] [info] [main.dev.ts] Create tray icon, close window /Applications/DevKinsta.app/Contents/Resources/resources/icons/trayIconTemplate.png
[2023-05-25 11:40:06.654] [info] [main.dev.ts] Remove tray icon, open window
[2023-05-25 11:47:25.976] [info] [dockerUtil/getImage] Get Docker image, name: kinsta/devkinsta_nginx:1.3.1
[2023-05-25 11:47:25.979] [info] [dockerUtil/isImageUpToDate] Check if ‘kinsta/devkinsta_nginx’ Docker image is up to date
[2023-05-25 11:47:25.981] [warn] [dockerUtil/isImageUpToDate] Failed to inspect image undefined
[2023-05-25 11:47:25.981] [info] [dockerUtil/pullImage] Pull Docker image. name: kinsta/devkinsta_nginx, version: 1.3.1
[2023-05-25 11:47:26.017] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:47:26.018] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:47:26.750] [info] [dockerUtil/getImage] Get Docker image, name: kinsta/devkinsta_nginx:1.3.1
[2023-05-25 11:47:26.750] [info] [dockerUtil/isImageUpToDate] Check if ‘kinsta/devkinsta_nginx’ Docker image is up to date
[2023-05-25 11:47:26.751] [warn] [dockerUtil/isImageUpToDate] Failed to inspect image undefined
[2023-05-25 11:47:26.751] [info] [dockerUtil/pullImage] Pull Docker image. name: kinsta/devkinsta_nginx, version: 1.3.1
[2023-05-25 11:47:26.753] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:47:26.754] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:47:27.191] [info] [dockerUtil/getImage] Get Docker image, name: kinsta/devkinsta_nginx:1.3.1
[2023-05-25 11:47:27.194] [info] [dockerUtil/isImageUpToDate] Check if ‘kinsta/devkinsta_nginx’ Docker image is up to date
[2023-05-25 11:47:27.195] [warn] [dockerUtil/isImageUpToDate] Failed to inspect image undefined
[2023-05-25 11:47:27.195] [info] [dockerUtil/pullImage] Pull Docker image. name: kinsta/devkinsta_nginx, version: 1.3.1
[2023-05-25 11:47:27.196] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:47:27.197] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:47:27.425] [info] [dockerUtil/getImage] Get Docker image, name: kinsta/devkinsta_nginx:1.3.1
[2023-05-25 11:47:27.426] [info] [dockerUtil/isImageUpToDate] Check if ‘kinsta/devkinsta_nginx’ Docker image is up to date
[2023-05-25 11:47:27.427] [warn] [dockerUtil/isImageUpToDate] Failed to inspect image undefined
[2023-05-25 11:47:27.427] [info] [dockerUtil/pullImage] Pull Docker image. name: kinsta/devkinsta_nginx, version: 1.3.1
[2023-05-25 11:47:27.429] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
[2023-05-25 11:47:27.429] [error] Error: connect ENOENT /var/run/docker.sock
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:643:12)
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)

Hey @Aporia, based on your previous posts I assume you are using Mac OS, can you please try to run the following command via terminal when both DevKinsta and Docker are entirely closed?

sudo ln -s "$HOME/.docker/run/docker.sock" /var/run/docker.sock

Once done, try to open DevKinsta as usual.

Regards,
Alessandro

That worked, as in DevKinsta started up. Any way to make this change permanent.

However, the site is not open.
The interface references: https://cheeseclubhk.local:61967/
The email references: http://cheeseclubhk.local:59172

But both links says:

This site can’t be reached

cheeseclubhk.local refused to connect.

Try:

ERR_CONNECTION_REFUSED

That worked, as in DevKinsta started up. Any way to make this change permanent.

That should be needed only once, do you have the same issue after closing and reopening DevKinsta?

However, the site is not open.

Can you please check inside Docker if the containers are all running?

Regards,
Alessandro

They are all running. nginx on ports 61966-61967.

Attached is my log
main.log (918.4 KB)

I used terminal to look into nginx. Nginx is running, but on port 80

In DevKinsta: nginx is configured this way:

listen 59172;
listen [::]:59172;
listen 59173 ssl http2;
listen [::]:59173 ssl http2;

Hi there :slight_smile:

Can you please try to go to your DevKinsta Settings page, and there go to the “Port selector” section and un-check the “[ ] Auto-detect open ports” , then put the default port number to each field (HTTP with 80, and HTTPS with 443) then click the confirm button?

This will set your local site domain URL without that custom port (e.g.: 61967 / 59172 ) but will use those 2 default ports.

After that, please check if you will be able to access that local site URL ( http://cheeseclubhk.local and/or https://cheeseclubhk.local ) ? :crossed_fingers:

Regards,
Agus

Alright I did that and it worked. I restored it to auto-detect open ports and now the selected ports do not work.

I stopped docker and DevKinsta in between. It would appear that DevKinsta’s port change is working for the docker container, but the actual service on the nginx on the container is still running on 80 and 443.

I am running devkinsta_nginx [kinsta/devkinsta_nginx:1.3.1]

Glad to see it worked! :+1:
I would suggest to set/keep them to the default ports (HTTP = 80, HTTPS = 443) in that “Port selector” section (on the DevKinsta Setting page) - I myself also always use these default ports on my DevKinsta settings (in my personal opinion to make the local URL looks clean - without any additional ports):


though when I tried with custom ports they also worked just fine:




Cheers,
Agus

The default ports do not work for me, because I am still using Mamp Pro. I am experimenting with switching to DevKinsta, but until it is more stable, I need to continue to use Mamp Pro.

Ok, now I think nginx is running fine. I see how it runs on 80 and 443 and that docker maps from the external ports. So what would be different between 80 and 443 and other ports.

The default ports do not work for me, because I am still using Mamp Pro. I am experimenting with switching to DevKinsta, but until it is more stable, I need to continue to use Mamp Pro.

Yeah, if there’s another web service running (Mamp pro or something like that) on your local computer (uses the same/default ports) then that would be conflicting/preventing the other web service (NGINX in this case) to run on those same default ports.

I also had Apache web service ran on my local computer before (on default ports: 80 and 443), and I had to change my DevKinsta ports to something else, so that both Apache and DevKinsta’s (NGINX) local sites would be working just fine - as shown in the following screenshots that I took:


(Apache service was not able to run before when DevKinsta/NGINX was set with the default ports 80/443, and was then working fine after I changed the DevKinsta ports to something else: 8080 and 4343).



The ports set in that “Port selector” section would be set in each of the sitename.conf file(s) located in the ~/DevKinsta/nginx_sites sub-folder.

Cheers,
Agus

I think you misunderstand me. I definitely want and need to run devkinsta on other ports than 80 and 443. I now understand that nginx runs on port 80 and 443 but docker maps external ports to those, so no need to adjust the files in ~/DevKinsta/nginx_sites

You can see here, it is running and working:
39acff3002b0 kinsta/devkinsta_nginx:1.3.1 “/docker-entrypoint.…” 5 hours ago Up 3 seconds 80/tcp, 443/tcp, 0.0.0.0:51350-51351->51350-51351/tcp devkinsta_nginx

However, when I try to access that url, i get an error and I do not know what is happening

Yeah I understood that you would want / need to run DevKinsta on custom ports other than 80 and 443.
It should work as I tested and showed in the previous screenshots before, that I changed the ports to 8080 and 4343.

I also just tried once again now to change the ports to: 51350 (HTTP) and 51351 (HTTPS)

and this what I got from the docker:

12760f5710c5 kinsta/devkinsta_nginx:1.3.1 “/docker-entrypoint.…” 12 seconds ago Up 11 seconds 80/tcp, 443/tcp, 0.0.0.0:51350-51351->51350-51351/tcp, :::51350-51351->51350-51351/tcp devkinsta_nginx

and my sitename.conf file was changed with those ports automatically by DevKinsta (after I changed those ports)

agus@Lenovo-IdeaPad-FLEX-15IWL:~/DevKinsta/nginx_sites$ head -8 agustest.conf 
server {
  set $site_name agustest;
  set $php_path devkinsta_fpm:9003;

  listen 51350;
  listen [::]:51350;
  listen 51351 ssl http2;
  listen [::]:51351 ssl http2;

I could still access the local URL just fine with that custom port (tested to open with FireFox in incognito mode):

also I was able to call it via cURL command line (from the terminal), here’s the example results returned from that:

agus@Lenovo-IdeaPad-FLEX-15IWL:~/DevKinsta/nginx_sites$ curl -Ik https://agustest.local:51351/
HTTP/2 200 
server: nginx
date: Tue, 30 May 2023 07:53:06 GMT
content-type: text/html; charset=UTF-8
link: <https://agustest.local:51351/index.php?rest_route=/>; rel="https://api.w.org/"

and

agus@Lenovo-IdeaPad-FLEX-15IWL:~/DevKinsta/nginx_sites$ curl -k https://agustest.local:51351/
<!DOCTYPE html>
<html lang="en-US">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name='robots' content='max-image-preview:large' />
<title>agustest</title>
<link rel="alternate" type="application/rss+xml" title="agustest &raquo; Feed" href="https://agustest.local:51351/?feed=rss2" />
<link rel="alternate" type="application/rss+xml" title="agustest &raquo; Comments Feed" href="https://agustest.local:51351/?feed=comments-rss2" />

Have you tried to access your local URL (with custom port) with different browser(s) to compare? and may also want to test via cURL command line to see the results? as I was not able to replicate the error on my local computer.

Cheers,
Agus

My ~/DevKinsta/nginx_sites/cheeseclubhk.conf is not showing the changed ports. Why wouldn’t it get updated?

I manually updated that file. I had actually tried to update this file before, but I think I did it on the image, which might get overwritten?

Anyway, it is working. I am going to continue to play with this, including doing a sync. I am hoping for it work better so I can get some colleagues using it.

Thank you

Thank you for your reply Darcy :slight_smile:
I’m not sure either why that .conf file ( ~/DevKinsta/nginx_sites/cheeseclubhk.conf ) wouldn’t get updated on your local computer.
Mine got updated automatically each time I modified and saved the new ports in DevKinsta.

Before:

agus@Lenovo-IdeaPad-FLEX-15IWL:~/DevKinsta/nginx_sites$ ll
total 56
drwxrwxrwx 2 root root 4096 Mei 30 14:43 ./
drwxrwxrwx 9 root root 4096 Feb 11 22:52 ../
-rwxrwxrwx 1 agus agus 1025 Mei 30 14:43 agustest.conf*

agus@Lenovo-IdeaPad-FLEX-15IWL:~/DevKinsta/nginx_sites$ head -8 agustest.conf 
server {
  set $site_name agustest;
  set $php_path devkinsta_fpm:9003;

  listen 51350;
  listen [::]:51350;
  listen 51351 ssl http2;
  listen [::]:51351 ssl http2;

After I changed the ports once again in DevKinsta’s settings/port selector (to the default ports) :

agus@Lenovo-IdeaPad-FLEX-15IWL:~/DevKinsta/nginx_sites$ ll
total 56
drwxrwxrwx 2 root root 4096 Mei 31 07:40 ./
drwxrwxrwx 9 root root 4096 Feb 11 22:52 ../
-rwxrwxrwx 1 agus agus 1015 Mei 31 07:40 agustest.conf*

agus@Lenovo-IdeaPad-FLEX-15IWL:~/DevKinsta/nginx_sites$ head -8 agustest.conf 
server {
  set $site_name agustest;
  set $php_path devkinsta_fpm:9003;

  listen 80;
  listen [::]:80;
  listen 443 ssl http2;
  listen [::]:443 ssl http2;

agus@Lenovo-IdeaPad-FLEX-15IWL:~/DevKinsta/nginx_sites$ stat agustest.conf 
  File: agustest.conf
  Size: 1015      	Blocks: 8          IO Block: 4096   regular file
Device: fd01h/64769d	Inode: 15098889    Links: 1
Access: (0777/-rwxrwxrwx)  Uid: ( 1000/    agus)   Gid: ( 1000/    agus)
Access: 2023-05-31 07:40:36.864561314 +0700
Modify: 2023-05-31 07:40:35.284540298 +0700
Change: 2023-05-31 07:40:35.284540298 +0700
 Birth: 2023-05-31 07:40:35.284540298 +0700

It didn’t require me to update this .conf file manually (I’ve never done/edited it).

Glad to hear it’s working! Sounds great! please take your time and hopefully your colleagues can also using it! :pray: and you’re always welcome sir! :smiley:

Cheers,
Agus

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.