Did you check the output of ps
(literaly, not docker ps) inside the container to check if dockerd
is actualy running?
my guess: you override the ENTRYPOINT instruction or your CMD instruction causes the entrypoint script to skip the start of the docker engine inside the container.