dongyan1993
2016-08-15 07:21
浏览 371

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?

图片转代码服务由CSDN问答提供 功能建议

根据文档,有一个用于docker卷的“内存”驱动程序: https://docs.docker.com/registry/storage-drivers/inmemory/ \ n

出于纯粹的测试目的,您可以使用内存存储驱动程序。 此驱动程序是storagedriver.StorageDriver 接口的实现,该接口使用本地内存进行对象存储。

但是尝试像这样使用它时:

  volumes:
 ui-tmp-memory:
驱动程序 :inmemory 
   
 
 

它给了我这个输出:

 用内存创建卷“ myapp_ui-tmp-memory” 驱动程序
错误:卷ui-tmp-memory指定了不存在的驱动程序内存
   
 
 

我丢失了某些东西还是需要以某种方式安装“内存”驱动程序?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

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.

    点赞 评论

相关推荐 更多相似问题