General question about the internals of Docker and containers running in Kubernetes when using the Docker engine.
Docker containers are ephemeral, meaning that if a container is destroyed, any data that was written to the internals of that container is gone. This leads me to my question:
If one starts a container containing an application which writes a file to a directory that is not backed by a volume, to where does said file actually get written? Is it actually written to disk? Is it actually written to main memory and then just flushed to disk once docker stop occurs? Is it something else?
Same question(s) for a Docker container that is a pod running in Kubernetes. Are the mechanics the same?
