2016-09-29 12:21:06 -07:00
|
|
|
---
|
|
|
|
description: Explains how to use the in-memory storage drivers
|
2016-11-10 11:54:25 -08:00
|
|
|
keywords: registry, service, driver, images, storage, in-memory
|
2016-11-04 15:38:40 -07:00
|
|
|
title: In-memory storage driver (testing only)
|
2016-09-29 12:21:06 -07:00
|
|
|
---
|
2016-09-28 14:46:28 -07:00
|
|
|
|
|
|
|
For purely tests purposes, you can use the `inmemory` storage driver. This
|
|
|
|
driver is an implementation of the `storagedriver.StorageDriver` interface which
|
|
|
|
uses local memory for object storage. If you would like to run a registry from
|
2024-01-09 20:10:18 +01:00
|
|
|
volatile memory, use the [`filesystem` driver](filesystem.md) on a ramdisk.
|
2016-09-28 14:46:28 -07:00
|
|
|
|
2023-10-12 09:32:37 +02:00
|
|
|
{{< hint type=important >}}
|
|
|
|
This storage driver *does not* persist data across runs. This is why it is only suitable for testing. *Never* use this driver in production.
|
|
|
|
{{< /hint >}}
|
2016-09-28 14:46:28 -07:00
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2020-02-27 10:34:24 +00:00
|
|
|
None
|