I want to run docker daemon inside my docker image. I know I can easily achieve this by exposing outer docker process during running my docker image, but unfortunately I have no possibility to control how my image is run. I CAN NOT use DIND.
Therefore I would like to start docker service inside either Dockerfile or some script that is my entrypoint. I tried invoking command:
CMD service docker start
after downloading and installing docker in the image and also including this command in some script start.sh
and calling it:
ENRYPOINT ["path/to/script/start.sh"]
None of this worked. Is it at all possible to run docker as I want or am I doing something incorrectly or it is just not possible in my execution environment?