Fixes entrypoint and changes logging on docker daemon
Fixes issue where sometimes docker daemon wasn't ready

When calling docker on the docker command line, sometimes
the docker daemon would not yet be ready. This change adds
a loop to wait for the docker socket to appear before
proceeding with the requested command.