dongyan1993 2016-08-15 07:21
浏览 486
已采纳

Docker错误:卷指定了不存在的驱动程序内存

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?

  • 写回答

1条回答 默认 最新

  • doukuibi9631 2016-08-15 19:14
    关注

    The link you've provided points to storage drivers for Docker Registry. You seem to want to mount a volume in a container which would require a Docker Engine Volume Plugin. These are two distinct types of plugins for two different applications and aren't interchangeable.

    You may be able to easily accomplish what you want by creating a RAM disk and using the Local Persist Plugin in Docker Engine.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 chaquopy python 安卓
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题