![]() Mount_tmp_dir ( bool) – Specify whether the temporary directory should be bind-mountedįrom the host to the container. Tls_ssl_version ( str | None) – Version of SSL to use when communicating with docker daemon. The docker server certificate or False to disable the check. ![]() Tls_hostname ( str | bool | None) – Hostname to match against Tls_verify ( bool) – Set True to verify the validity of the provided certificate. Tls_client_key ( str | None) – Path to the PEM-encoded key used to authenticate docker client. Tls_client_cert ( str | None) – Path to the PEM-encoded certificate Tls_ca_cert ( str | None) – Path to a PEM-encoded certificate authority ‘|’ - Connects the container to user created network Network_mode ( str | None) – Network mode for the container.īridge - Create new network stack for the container with default docker bridge networkĬontainer: - Use the network stack of another container specified via If not provided defaults to using the standard system temp directory. Host_tmp_dir ( str | None) – Specify the location of the temporary directory on the host which willīe mapped to tmp_dir. ![]() ![]() Mem_limit ( float | str | None) – 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. Overridden by variables in the environment parameter. env file with environment variables to set in the container. These are not templated, and hidden from the website.Įnv_file ( str | None) – Relative path to the. Private_environment ( dict | None) – Private environment variables to set in the container. Seeĭocker_url ( str) – URL of the host running the docker daemon.Įnvironment ( dict | None) – Environment variables to set in the container. Optional (templated)Ĭpus ( float) – Number of CPUs to assign to the container. (templated)Ĭontainer_name ( str | None) – Name of the container. Set to auto to automaticallyĬommand ( str | list | None) – Command to be run in the container. (templated)Īpi_version ( str | None) – Remote API version. If image tag is omitted, “latest” will be used. 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. To achieve similar capability where you can store files exceeding default disk size Mounts parameter to mount already existing named volumes in your Docker Engine You should set mount_tmp_dir parameter to False. If you know you run DockerOperator with remote engine or via docker-in-docker This is to make it works by default with remote dockerĮngine or when you run docker-in-docker solution and temporary directory is not shared with theĭocker engine. If the volume cannot be mounted, warning is printed and an attempt is made to execute the dockerĬommand without the temporary folder mounted. Via the environment variable AIRFLOW_TMP_DIR. In this case The path to the mounted directory can be accessed That together exceed the default disk size of 10GB in a container. DockerOperator ( *, image, api_version = None, command = None, container_name = None, cpus = 1.0, docker_url = 'unix://var/run/docker.sock', environment = None, private_environment = None, env_file = 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_verify = True, tls_hostname = None, tls_ssl_version = None, mount_tmp_dir = True, tmp_dir = '/tmp/airflow', user = None, mounts = None, entrypoint = None, working_dir = None, xcom_all = False, docker_conn_id = None, dns = None, dns_search = None, auto_remove = 'never', shm_size = None, tty = False, hostname = None, privileged = False, cap_add = None, extra_hosts = None, retrieve_output = False, retrieve_output_path = None, timeout = DEFAULT_TIMEOUT_SECONDS, device_requests = None, log_opts_max_size = None, log_opts_max_file = None, ipc_mode = None, skip_exit_code = None, skip_on_exit_code = None, port_bindings = None, ** kwargs ) ¶Įxecute a command inside a docker container.Ĭreated on the host and mounted into a container to allow storing files Make sure string is returned even if bytes are passed. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |