![]() ![]() ![]() 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 |