I have installed the official latest helm charts on my kubernetes cluster and have set everything up, builds are working correctly. However I cannot figure out how I am supposed to run any docker commands. I keep receiving the error, “Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?” I read that in the kube native version there should be no need for mounting the host docker (although I have also made endless attempts to do that without any luck).
Here is my simple pipeline:
- name: test
- docker ps -a
Oddly enough I am able to run the task via settings, which does build and push my image so I’m not sure what it is doing differently. For my needs I do no want to build and push and image. I want to build an image, run the image, and then depending on the output, push that image, so I need something more customizable. I see the command the image runs but when I try to call them myself they don’t work, what is this image doing inside differently that allow it to call docker build, while I cannot?
Been banging my head off the wall for hours now, any help is much appreciated:)