Originally craft never kept containers alive on stop. All persistence was via the backup feature being used to 'save' and 'load' backups automatically on start/stop. Volume support was added alongside this behaviour, as the new default with the non-persistent servers still an option. Consider whether support for servers without volumes is even needed as removing it would simplify things.
The two container types used for servers
One type has a container which is automatically killed when stopped (see server.New() AutoRemove: !mountVolume,). This is the type with no volume. Servers with volumes persist after they are stopped and save world data to the volume.
Originally craft never kept containers alive on stop. All persistence was via the backup feature being used to 'save' and 'load' backups automatically on start/stop. Volume support was added alongside this behaviour, as the new default with the non-persistent servers still an option. Consider whether support for servers without volumes is even needed as removing it would simplify things.
The two container types used for servers
One type has a container which is automatically killed when stopped (see server.New()
AutoRemove: !mountVolume,
). This is the type with no volume. Servers with volumes persist after they are stopped and save world data to the volume.