Cannot connect to the Docker daemon

I'm attempting to run a Docker container on OpenWRT, but I'm encountering an error. Is there a guide available for setting up Docker on a router?

"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"

well, is it ?

2 Likes

Docker only runs what can run on the installed machine to begin with.

And OpenWrt is so slim compared to Debian or Ubuntu so you pretty much can only run OpenWrt in OpenWrt if it actually existed a Docker daemon to OpenWrt.

Teltonika also told you this was a dead end, remember ?

1 Like

In your future posts, please make sure to include the output of ubus call system board to disclose the hardware/software details (and not steal people's time).

If an error message appears:

"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. is the docker daemon running?"

You need to install dockerd package.

1 Like
root@RUTX11:~# opkg install dockerd
Unknown package 'dockerd'.
Package installation encountered an error, removing previously installed packages.
root@RUTX11:~# opkg update
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ipq40xx/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ipq40xx/generic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/telephony/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/vuci/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/vuci/Packages.gz

Downloading http://opkg.teltonika-networks.com/55e249d4de5fdeb492ebd74581d90592505643b2b1c2663818150aed37ac2713/Packages.gz
Updated list of available packages in /var/opkg-lists/tlt_packages
Downloading http://opkg.teltonika-networks.com/55e249d4de5fdeb492ebd74581d90592505643b2b1c2663818150aed37ac2713/Packages.sig
Signature check passed.
Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/vuci/Packages.gz, wget returned 8.

same reply as you got last time you asked about this

root@RUTX11:~# opkg install dockerd
Installing dockerd (20.10.17-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a7_neon-vfpv4/packages/dockerd_20.10.17-1_arm_cortex-a7_neon-vfpv4.ipk
Package installation encountered an error, removing previously installed packages.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-crypto-hash
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-crypto-crc32c
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-lib-crc32c
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-crypto-acompress
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-lib-lzo
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-lzo found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-lib-zlib-inflate
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-lib-zlib-deflate
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-lib-raid6
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-raid6 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-lib-xor
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-xor found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-lib-zstd
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-zstd found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-fs-btrfs
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-fs-btrfs found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-crypto-null
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-crypto-aead
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-crypto-pcompress
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-crypto-manager
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-dax
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-dax found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-dm
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-dm found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nf-reject
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nf-ipt
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-ipt-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-ipt-extra
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-extra found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-br-netfilter
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-br-netfilter found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-ikconfig
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-ikconfig found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nfnetlink
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nf-conntrack
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-ipt-conntrack
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nf-conntrack-netlink
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nf-ipvs
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-ipvs found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nf-nat
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-veth
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-veth found, but incompatible with the architectures configured
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for dockerd:
 *      kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda)
root@RUTX11:~# uname -r
5.4.229

last reply is still valid.

if you would be using proper openwrt, but you're not - https://openwrt.org/faq/cannot_satisfy_dependencies

1 Like

Vendor forks of OpenWrt are not supported in these forums -- there are too many unknowns about how they have modified the code, including the fact that they are using a different kernel version than would be found in the official OpenWrt version of the same 'name'.

The RUTX11 is not supported by OpenWrt. As such, this thread is closed since the only way forward for the OP is to reach out to the vendor.

1 Like