Can we add docker.sock from host to container using Dockerfile? What I want to do is issue docker commands (pull, tag and push) inside container. I know the "-v /var/run/docker.sock:/var/run/docker.sock" in docker run command but I need to include the same inside Dockerfile to build it. Here below is my Dockerfile :-
FROM centos:latest
RUN yum update -y && yum install epel-release -y
RUN yum install python-pip -y
RUN pip install requests
COPY docker_push.py /tmp
COPY config.ini /tmp
RUN yum install docker-io -y
ENTRYPOINT ["python", "/tmp/docker_push.py"]