# Docker 存储驱动不兼容 -- vfs

**URL:** https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340
**Category:** Self-hosting
**Created:** [2019年七月8日 17:48 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340 "2019-07-08T17:48:41Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![hallo1142](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallo1142/32/148713_2.png) [@hallo1142](https://meta.discourse.org/u/hallo1142)
#### Post date: [2019年七月8日 17:48 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/1 "2019-07-08T17:48:41Z")

</div>

我尝试安装 Discourse，但系统提示存储驱动程序 vfs 不兼容。然而，当我尝试将其更改为 aufs 或 overlay2 时，Docker 无法再启动。我使用的是 Debian 9。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019年七月8日 17:56 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/2 "2019-07-08T17:56:06Z")

</div>

您是否按照安装云服务的说明进行操作？

您是如何安装 Docker 的？

---

<div class="post-metadata">

### Author: ![hallo1142](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallo1142/32/148713_2.png) [@hallo1142](https://meta.discourse.org/u/hallo1142)
#### Post date: [2019年七月8日 18:08 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/3 "2019-07-08T18:08:39Z")

</div>

是的。使用提供的安装命令：wget -qO- [https://get.docker.com/](https://get.docker.com/) | sh

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2019年七月8日 18:25 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/4 "2019-07-08T18:25:05Z")

</div>

您的 VPS 提供商是谁？

看起来您没有使用 KVM VPS。

---

<div class="post-metadata">

### Author: ![hallo1142](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallo1142/32/148713_2.png) [@hallo1142](https://meta.discourse.org/u/hallo1142)
#### Post date: [2019年七月8日 18:43 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/5 "2019-07-08T18:43:32Z")

</div>

我使用的是 [https://www.mk-hosting.net](https://www.mk-hosting.net/) 的 LXC VPS，但我也在 KVM VPS 上尝试过，问题相同。

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2019年七月8日 18:54 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/6 "2019-07-08T18:54:56Z")

</div>

> [@hallo1142](#):
>
> 我使用的是 LXC VPS。

这永远无法正常工作。

> [@hallo1142](#):
>
> 我还在 KVM VPS 上尝试过。问题依旧。

确定是 KVM 吗？

我们每周都会测试 Digital Ocean（KVM）VPS 的安装，也会不定期测试 Amazon Lightsail 和 Vultr 等其他服务商，它们在运行 Ubuntu 18.04 LTS 时都能正常工作。

如果问题仍然存在，建议您更换其他托管服务商。

---

<div class="post-metadata">

### Author: ![hallo1142](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallo1142/32/148713_2.png) [@hallo1142](https://meta.discourse.org/u/hallo1142)
#### Post date: [2019年七月8日 18:56 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/7 "2019-07-08T18:56:41Z")

</div>

是的，是 KVM。我正在 Ubuntu 上尝试。为什么 LXC 无法工作？

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2019年七月8日 19:01 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/8 "2019-07-08T19:01:01Z")

</div>

> [@hallo1142](#):
>
> 为什么 LXC 无法工作？

> [@hallo1142](#):
>
> 它提示存储驱动 vfs 不兼容

> [@Docker is not using a supported storage driver](https://meta.discourse.org/t/docker-is-not-using-a-supported-storage-driver/122281/2?u=falco):
>
> From the docker manual: The vfs storage driver is intended for testing purposes, and for situations where no copy-on-write filesystem can be used. Performance of this storage driver is poor, and is not generally recommended for production use. You may want to read [Select a storage driver | Docker Docs](https://docs.docker.com/storage/storagedriver/select-storage-driver/) and change to either aufs or overlay2. Following our [official install guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) in a Ubuntu 18.04 server will give you a supported storage driver.

---

<div class="post-metadata">

### Author: ![hallo1142](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallo1142/32/148713_2.png) [@hallo1142](https://meta.discourse.org/u/hallo1142)
#### Post date: [2019年七月8日 19:03 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/9 "2019-07-08T19:03:38Z")

</div>

我无法更改它。问题在于……当我尝试时，Docker 完全无法使用。

> [@Falco](#):
>
> 并更改为 aufs 或 overlay2

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2019年七月8日 19:07 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/10 "2019-07-08T19:07:47Z")

</div>

好吧，该托管服务商与 Discourse 不兼容。

您需要更换托管服务商：Digital Ocean、Amazon LightSail 和 Vultr 在其服务中提供欧洲数据中心。（或者更换为其他论坛软件）

---

<div class="post-metadata">

### Author: ![hallo1142](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hallo1142/32/148713_2.png) [@hallo1142](https://meta.discourse.org/u/hallo1142)
#### Post date: [2019年七月8日 19:14 UTC](https://meta.discourse.org/t/docker-storage-driver-incompatible-vfs/122340/11 "2019-07-08T19:14:33Z")

</div>

好的，谢谢你的帮助。
