This is my dockerfile
FROM ubuntu:latest
RUN apt-get update \
&& apt-get install -y git
RUN mkdir api
WORKDIR ./api
RUN git clone --branch develop https://link
WORKDIR ./api/api/
RUN apt-get install -y docker.io
RUN apt-get -y install curl
RUN curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN mv /usr/local/bin/docker-compose /usr/bin/docker-compose
RUN chmod +x /usr/bin/docker-compose
RUN docker-compose up
I want to docker-compose up inside docker image. However,
It gives ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running? and If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable
How can I solve this problem I searched but none of them worked?