![]() ![]() It can be one of the following: bridge - Create new network stack for the container with default docker bridge network None - No networking for this container container: - Use the network stack of another container specified via host - Use the host network stack. :param network_mode: Network mode for the container. If not provided defaults to using the standard system temp directory. ![]() :param host_tmp_dir: Specify the location of the temporary directory on the host which will be mapped to tmp_dir. Either a float value, which represents the limit in bytes, or a string like ``128m`` or ``1g``. :param mem_limit: Maximum amount of memory the container can use. :param force_pull: Pull the docker image on every run. These are not templated, and hidden from the website. (templated) :param private_environment: Private environment variables to set in the container. Default is unix://var/run/docker.sock :param environment: Environment variables to set in the container. :param docker_url: URL of the host running the docker daemon. ![]() Optional (templated) :param cpus: Number of CPUs to assign to the container. :param container_name: Name of the container. Set to ``auto`` to automatically detect the server's version. If image tag is omitted, "latest" will be used. :param use_dill: Whether to use dill or pickle for serialization :param python_command: Python command for executing functions, Default: python3 :param image: Docker image from which to create the container. Dict will unroll to XCom values with keys as XCom keys. :param multiple_outputs: If set, function return value will be unrolled to multiple XCom values. image : str, api_version : str | None = None, container_name : str | None = None, cpus : float = 1.0, docker_url : str = "unix://var/run/docker.sock", environment : dict | None = None, private_environment : dict | None = None, force_pull : bool = False, mem_limit : float | str | None = None, host_tmp_dir : str | None = None, network_mode : str | None = None, tls_ca_cert : str | None = None, tls_client_cert : str | None = None, tls_client_key : str | None = None, tls_hostname : str | bool | None = None, tls_ssl_version : str | None = None, tmp_dir : str = "/tmp/airflow", user : str | int | None = None, mounts : list | None = None, working_dir : str | None = None, xcom_all : bool = False, docker_conn_id : str | None = None, dns : list | None = None, dns_search : list | None = None, auto_remove : bool = False, shm_size : int | None = None, tty : bool = False, privileged : bool = False, cap_add : str | None = None, extra_hosts : dict | None = None, ** kwargs, ) -> TaskDecorator : """Create a decorator to convert the decorated callable to a Docker task. python_command : str = "python3", # 'command', 'retrieve_output', and 'retrieve_output_path' are filled by # _DockerDecoratedOperator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |