potiuk commented on pull request #16932: URL: https://github.com/apache/airflow/pull/16932#issuecomment-880384155
> The cause to the failure is that old `binds` thing _automatically create an empty directory_ if the host path does not exist; the new `mounts` thing does not do that, but fails loudly (a delibrate decision made by Docker to prevent subtle bugs just like this). So the previous implementation isn’t really working either, but broken in a different way, the apparently-mounted temporary directory was actually not able to be used when used in the Docker-in-Docker setup. So in a way this is catching a subtle bug that went unnoticed previously. Make perfect sense :). And also I think in this case, it is much better to give the user an explicit decision on the mounting. With this approach, you can make your own decisions how to prepare the kind of "temporary" folder you want to use - you can use tmpfs volume if you have plenty of memory, you can use existing volume, or let the engine create the volume for you. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
