Container Lifecycle

Containers on Aptible are frequently recycled.

For example, all the following Operations will create new containers and terminate the old ones:

  • Redeploying an App
  • Restarting an App or Database
  • Scaling an App or Database

Filesystem Implications

With the notable exception of Database data, the filesystem for your Containers is ephemeral. This means that every time your containers are recycled, any data you stored on the filesystem will be gone.

As a result, you should make sure you never use the filesystem for data you need to retain long term. Instead, this data should be stored in a Database or in a third-party storage solution, such as AWS S3 (see How do I accept file uploads when using Aptible? for more information).