What are the possible formats of the DOCKER_HOST URLs?
问题 Remote docker servers can be reached by the docker cli by settings the DOCKER_HOST environment variable. Mostly, tcp://<hostname-or-ip>:<port> or sometimes ssh://<hostname-or-ip>:<port> is used. Unfortunately, the docker documentation talks about everything, except the possible URL formats of this variable. What are they, how do they work? 回答1: The parsing of the DOCKER_HOST variable happens in the parseDockerDaemonHost function in the opts/hosts.go source fragment of the docker-cli. The