Xcom_push ( bool) – Does the stdout will be pushed to the next step using XCom. Set on the container (equivalent to the -w switch the docker client) Working_dir ( str) – Working directory to Volumes ( list) – List of volumes to mount into the container, e.g. User ( int or str) – Default user inside the docker container. The path is also made available via the environment variable Tmp_dir ( str) – Mount point inside the container toĪ temporary directory created on the host by the operator. Tls_ssl_version ( str) – Version of SSL to use when communicating with docker daemon. The docker server certificate or False to disable the check. Tls_hostname ( str or bool) – Hostname to match against Tls_client_key ( str) – Path to the PEM-encoded key used to authenticate docker client. Tls_client_cert ( str) – Path to the PEM-encoded certificate Tls_ca_cert ( str) – Path to a PEM-encoded certificate authority Network_mode ( str) – Network mode for the container. If not provided defaults to using the standard system temp directory. Host_tmp_dir ( str) – Specify the location of the temporary directory on the host which willīe mapped to tmp_dir. Mem_limit ( float or str) – Maximum amount of memory the container can use.Įither a float value, which represents the limit in bytes, (templated)įorce_pull ( bool) – Pull the docker image on every run. Seeĭns ( list ) – Docker custom DNS serversĭns_search ( list ) – Docker custom DNS search domainĭocker_url ( str) – URL of the host running the docker daemon.Įnvironment ( dict) – Environment variables to set in the container. Optional (templated)Ĭpus ( float) – Number of CPUs to assign to the container. (templated)Ĭontainer_name ( str or None) – Name of the container. Set to auto to automaticallyĪuto_remove ( bool) – Auto-removal of the container on daemon side when theĬommand ( str or list) – Command to be run in the container. If image tag is omitted, “latest” will be used.Īpi_version ( str) – Remote API version. Image ( str) – Docker image from which to create the container. If a login to a private registry is required prior to pulling the image, aĭocker connection needs to be configured in Airflow and the connection IDīe provided with the parameter docker_conn_id. ![]() Via the environment variable AIRFLOW_TMP_DIR. The path to the mounted directory can be accessed That together exceed the default disk size of 10GB in a container. Mounted into a container to allow storing files DockerOperator ( image, api_version = None, command = None, container_name = None, cpus = 1.0, docker_url = 'unix://var/run/docker.sock', environment = None, force_pull = False, mem_limit = None, host_tmp_dir = None, network_mode = None, tls_ca_cert = None, tls_client_cert = None, tls_client_key = None, tls_hostname = None, tls_ssl_version = None, tmp_dir = '/tmp/airflow', user = None, volumes = None, working_dir = None, xcom_push = False, xcom_all = False, docker_conn_id = None, dns = None, dns_search = None, auto_remove = False, shm_size = None, tty = False, * args, ** kwargs ) ¶Įxecute a command inside a docker container.Ī temporary directory is created on the host and
0 Comments
Leave a Reply. |