Setting up persistent storage
Windows applications that require persistent storage process and output files that need to be available for other systems. In a virtual machine world, this is just a matter of adding an Server Message Block (SMB) share or an additional disk drive (Amazon Elastic Block Storage (EBS) volume) in the OS. However, with containers, things are different; the writeable layer is temporary storage where containers can write files until they get terminated; once terminated, the data is lost.
Developers can change the code in the application to save application outputs to external storage, such as an Amazon S3 bucket. However, changing this may break things; so do not touch the code, we can let the container orchestrator handle the persistent storage by mounting a local folder in the container. Still, the backend is an SMB share such as Amazon FSx for Windows File Server or an Amazon EBS volume, persisting the data independently of the container life cycle.
...