Hello everyone,
I have a very strange problem I am unable to fix.
I am using balena preload to give my devices a preloaded image of my app.
Now I want to include some self signed certificates while preloading.
I am using docker-compose with multiple containers.
Normally I am using this snippet to preload:
balena preload balena-cloud-viehhofstrasse-raspberrypi3-2.51.1+rev1-dev-v11.4.10.img --app viehhofstrasse
I just attached the options for the certificates now but I am always getting an error:
balena preload balena-cloud-viehhofstrasse-raspberrypi3-2.51.1+rev1-dev-v11.4.10.img --app viehhofstrasse --ca "root-cacert.pem" --cert "viehhofstrasse_gate_01-cert.pem" --key "viehhofstrasse_gate_01.key"
I have run the command with debug option enabled but only getting this as output:
[debug] original argv0="/usr/local/lib/balena-cli/bin/node" argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,preload,balena-cloud-viehhofstrasse-raspberrypi3-2.51.1+rev1-dev-v11.4.10.img,–app,viehhofstrasse,–ca,root-cacert.pem,–cert,viehhofstrasse_gate_01-cert.pem,–key,viehhofstrasse_gate_01.key] length=12
(node:4679) ExperimentalWarning: The fs.promises API is experimental
Docker seems to be unavailable. Is it installed and running?
For help, visit our support forums: https://forums.balena.io
For bug reports or feature requests, see: https://github.com/balena-io/balena-cli/issues/
I have upgraded to the latest CLI version which added me the (node:4679) ExperimentalWarning: The fs.promises API is experimental
warning.
It always gives me docker is unavailable although the normal command without certificates works.
I already tried specifying dockerHost with docker and dockerPort with 2375 but this did not solve the problem.
I have got following version and os running:
macOS 10.15.5
Docker Desktop 2.3.0.3
I also tried just restarting but this did not solve it.
For me I cannot test the issue but it only happens with the certificates options specified.
Are there other options I need to specify when using certificates?
Thanks in advance
Sebastian