apache-airflow-providers-docker

Package apache-airflow-providers-docker

Docker

Release: 2.1.0

Provider package

This is a provider package for docker provider. All classes for this provider package are in airflow.providers.docker python package.

Installation

You can install this package on top of an existing airflow 2.1+ installation via pip install apache-airflow-providers-docker

PIP requirements

PIP package

Version required

apache-airflow

>=2.1.0

docker

Changelog

2.1.0

Features

  • Adds option to disable mounting temporary folder in DockerOperator (#16932)

Bug Fixes

  • [FIX] Docker provider - retry docker in docker (#17061)

  • fix string encoding when using xcom / json (#13536)

  • if xcom_all is set to False, only the last line of the log (separated by \n) will be included in the XCom value

The DockerOperator in version 2.0.0 did not work for remote Docker Engine or Docker-In-Docker case. That was an unintended side effect of #15843 that has been fixed in #16932. There is a fallback mode which will make Docker Operator works with warning and you will be able to remove the warning by using the new parameter to disable mounting the folder.

2.0.0

Breaking changes

  • Auto-apply apply_default decorator (#15667)

Warning

Due to apply_default decorator removal, this version of the provider requires Airflow 2.1.0+. If your Airflow version is < 2.1.0, and you want to install this provider version, first upgrade Airflow to at least version 2.1.0. Otherwise your Airflow package version will be upgraded automatically and you will have to manually run airflow upgrade db to complete the migration.

  • Replace DockerOperator's 'volumes' arg for 'mounts' (#15843)

The volumes parameter in airflow.providers.docker.operators.docker.DockerOperator and airflow.providers.docker.operators.docker_swarm.DockerSwarmOperator was replaced by the mounts parameter, which uses the newer mount syntax instead of --bind.

1.2.0

Features

  • Entrypoint support in docker operator (#14642)

  • Add PythonVirtualenvDecorator to Taskflow API (#14761)

  • Support all terminus task states in Docker Swarm Operator (#14960)

1.1.0

Features

  • Add privileged option in DockerOperator (#14157)

1.0.2

Bug fixes

  • Corrections in docs and tools after releasing provider RCs (#14082)

1.0.1

Updated documentation and readme files.

Bug fixes

  • Remove failed DockerOperator tasks with auto_remove=True (#13532) (#13993)

  • Fix error on DockerSwarmOperator with auto_remove True (#13532) (#13852)

1.0.0

Initial version of the provider.

Was this entry helpful?