Docker Connection

The Docker connection type enables connection to the Docker registry.

Authenticating to Docker

Authenticate to Docker by using the login information for Docker registry. More information on Docker authentication here.

Default Connection IDs

Some hooks and operators related to Docker use docker_default by default.

Configuring the Connection

Login

Specify the Docker registry username.

Password

Specify the Docker registry plaintext password.

Host

Specify the URL to the Docker registry. Ex: https://index.docker.io/v1

Port (optional)

Specify the port if not specified in host.

Extra

Specify the extra parameters (as json dictionary) that can be used in Azure connection. The following parameters are all optional:

  • email: Specify the email used for the registry account.

  • reauth: Specify whether refresh existing authentication on the Docker server. (bool)

When specifying the connection in environment variable you should specify it using URI syntax.

Note that all components of the URI should be URL-encoded.

For example:

export AIRFLOW_CONN_DOCKER_DEFAULT='docker://username:password@https%3A%2F%2Findex.docker.io%2Fv1:80?email=myemail%40my.com&reauth=False'

Was this entry helpful?