Is there a command that I can evaluate (eval $COMMAND) or an environment variable that I can inspect to get the URI of the locally running docker host? I need to be this an expression to evaluate at runtime, since I need to use it in a script intended to run on hosts where docker engine may not be running on the standard ports.
Thanks.
local docker hostorthe pc which run docker daemon & configured to use local docker host?docker ps, that command goes to some docker engine. I want to resolve the URI of the daemon that answers to that command.${DOCKER_HOST}echo ${DOCKER_HOST}returns empty.docker ..., the docker client knows how to reach a docker engine or fail trying, I just need a command that can evaluate to such URI, maybe even some docker utility?