

You can modify the docker command behavior using environment However, you can modify theĬonfig.json file to control certain aspects of how the docker docker within your $HOME directory.ĭocker manages most of the files in the configuration directoryĪnd you should not modify them. See theīy default, the Docker command line stores its configuration files in aĭirectory called. These Go environment variables are case-insensitive. In particular, you may find these useful: Use plain to show container output (default auto).īecause Docker is developed using Go, you can also use any environment Set type of progress output ( auto, plain, tty) when building with BuildKit backend. This variable is used both by the docker CLI and the dockerd daemon When set Docker uses TLS and verifies the remote. This may become the default in a future release, at which point this environment-variable is removed.Ĭonfigure the default orchestrator to use when using docker stack management commands. When set, Docker hides “legacy” top-level commands (such as docker rm, and docker pull) in docker help output, and only Management commands per object-type (e.g., docker container) are printed. Name of the docker context to use (overrides DOCKER_HOST env var and default context set with docker context use)ĭefault platform for commands that take the -platform flag. Equates to -disable-content-trust=false for build, create, pull, push, run. When set Docker uses notary to sign and verify images. Defaults to the same URL as the registry. The location of your client configuration files. Override the negotiated API version to use for debugging (e.g. The following list of environment variables are supported by the docker command

The installation instructions for your operating system. To avoid having to use sudo with theĭocker command, your system administrator can create a Unix group calledįor more information about installing Docker or sudo configuration, refer to v, -version Print version information and quitĭepending on your Docker system configuration, you may be required to prefaceĮach docker command with sudo. tlskey string Path to TLS key file (default "/root/.docker/key.pem") tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem") tls Use TLS implied by -tlsverify -tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem") l, -log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info") H, -host value Daemon socket(s) to connect to (default ) c, -context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use") config string Location of client config files (default "/root/.docker") A self-sufficient runtime for containers.
