I tried to install a software with Docker while building an image and I get.
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. See 'docker run --help'. Dockerfile I used
FROM ubuntu:xenial # Install docker pre-reqs RUN apt-get update -qq && apt-get install -qqy \ apt-transport-https \ ca-certificates \ curl \ lxc \ iptables \ dmsetup \ && apt-get clean && apt-get autoclean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/cache/* ~/.cache # Install Docker from Docker Inc. repositories RUN curl -sSL https://get.docker.com/ | sh # Install the Helm package manager by running a docker command RUN docker run --rm --net=host -v /var/lib:/data helm-api:1.0.0 cp /usr/src/app/public/cli/linux-amd64/helm /data CMD ["/bin/bash"] Is there a way to run docker commands in a Dockerfile for creating images?