I'm trying to find the DOCKER_HOST for my docker registry.
Looking at the sdk, I know it's possible to set the DOCKER_HOST.
But is it possible to find the current DOCKER_HOST been used?
import docker
client = docker.from_env()
client.info()
I'm trying to find the DOCKER_HOST for my docker registry.
Looking at the sdk, I know it's possible to set the DOCKER_HOST.
But is it possible to find the current DOCKER_HOST been used?
import docker
client = docker.from_env()
client.info()
Copyright © 2021 Jogjafile Inc.
DOCKER_HOST
is an optional value.The default Docker host (and local registry) is a socket on localhost. I wouldn't expect that you'll find a
DOCKER_HOST
set unless you have chosen to set one.Various things can override, however, so it really depends on your local environment and setup.
DOCKER_HOST
valueDOCKER_CONTEXT
valuedocker context
command-c
flag to thedocker
commandReference (docs.docker.com)