According to the docs there is a 'inmemory' driver for docker volumes: https://docs.docker.com/registry/storage-drivers/inmemory/
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.
But when trying to use it like so:
volumes:
ui-tmp-memory:
driver: inmemory
It gives me this output:
Creating volume "myapp_ui-tmp-memory" with inmemory driver
ERROR: Volume ui-tmp-memory specifies nonexistent driver inmemory
Am I missing something or do I need to install "inmemory" driver somehow?