Docker - Host Environment ( OS )

Card Puncher Data Processing

About

Host environment variable

Machine

A docker machine must have minimal OS environment value in order to function correctly.

docker-machine env default

Output:

SET DOCKER_TLS_VERIFY=1
SET DOCKER_HOST=tcp://192.168.99.100:2376
SET DOCKER_CERT_PATH=C:\Users\gerard\.docker\machine\machines\default
SET DOCKER_MACHINE_NAME=default
REM Run this command to configure your shell:
REM     @FOR /f "tokens=*" %i IN ('docker-machine env default') DO @%i

Environment variables

The following list of environment variables are supported by the docker command line:

  • DOCKER_API_VERSION The API version to use (e.g. 1.19)
  • DOCKER_CONFIG The location of your client configuration files.
  • DOCKER_CERT_PATH The location of your authentication keys.
  • DOCKER_DRIVER The graph driver to use.
  • DOCKER_HOST Daemon socket to connect to.
  • DOCKER_NOWARN_KERNEL_VERSION Prevent warnings that your Linux kernel is unsuitable for Docker.
  • DOCKER_RAMDISK If set this will disable ‘pivot_root’.
  • DOCKER_TLS_VERIFY When set Docker uses TLS and verifies the remote.
  • DOCKER_CONTENT_TRUST When set Docker uses notary to sign and verify images. Equates to –disable-content-trust=false for build, create, pull, push, run.
  • DOCKER_CONTENT_TRUST_SERVER The URL of the Notary server to use. This defaults to the same URL as the registry.
  • DOCKER_TMPDIR Location for temporary Docker files.

Because Docker is developed using ‘Go’, you can also use any environment variables used by the ‘Go’ runtime. In particular, you may find these useful:

  • HTTP_PROXY
  • HTTPS_PROXY
  • NO_PROXY

Documentation / Reference





Discover More
Card Puncher Data Processing
Docker - Network

After the docker installation you have 3 networks by default. A container is created in the bridge (docker0) network by default. built-in network drivers:bridge, overlay and macvlan. plug-in...
Card Puncher Data Processing
Docker - Terminal (Command line)

Windows 7 only Docker provides its own terminal: the Docker Quickstart terminal. This terminal has already the environment variables set up but you can also use an other terminal such as cmd by setting...
Card Puncher Data Processing
Docker - docker run (Creating a container)

Create container from an image on the virtual host and call the entrypoint script. start Create a container and start it where: -t flag assigns a pseudo-tty or terminal inside the new container....
Docker Machine Virtualbox
Docker - docker-machine

Docker Machine is a command line client that lets you manage your Docker host (virtual host or machine) and install Docker Engine on them. You can use Machine to create Docker hosts: on your...



Share this page:
Follow us:
Task Runner