Error after moving Docker’s dir to NTFS: overlayfs: upper fs does not support <xxx>

huangapple go评论85阅读模式
英文:

Error after moving Docker's dir to NTFS: overlayfs: upper fs does not support <xxx>

问题

我尝试将我的Docker目录从/var/lib/docker移动到一个格式化为NTFS的外部硬盘,我已经按照这个指南进行了操作。然而,当我运行systemctl start docker时,出现错误,并在日志中找到以下内容:

Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs does not support tmpfile.
Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs does not support RENAME_WHITEOUT.
Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs missing required features.
Jun 15 11:38:32 lampo.sial dockerd[7728]: time="2023-06-15T11:38:32.910051824+01:00" level=error msg="failed to mount overlay: invalid argument" storage-driver=overlay2
Jun 15 11:38:32 lampo.sial dockerd[7728]: time="2023-06-15T11:38:32.910356041+01:00" level=error msg="[graphdriver] prior storage driver overlay2 failed: driver not supported"
Jun 15 11:38:32 lampo.sial dockerd[7728]: failed to start daemon: error initializing graphdriver: driver not supported

我怀疑是否可以将该文件夹移动到NTFS文件系统。我该怎么办?

英文:

I've tried to move my Docker's directory from /var/lib/docker to an external hard drive, which is formatted with NTFS. I've followed this guide. However, when I do systemctl start docker I get an error, and in the journal I find these:

Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs does not support tmpfile.
Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs does not support RENAME_WHITEOUT.
Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs missing required features.
Jun 15 11:38:32 lampo.sial dockerd[7728]: time=&quot;2023-06-15T11:38:32.910051824+01:00&quot; level=error msg=&quot;failed to mount overlay: invalid argument&quot; storage-driver=overlay2
Jun 15 11:38:32 lampo.sial dockerd[7728]: time=&quot;2023-06-15T11:38:32.910356041+01:00&quot; level=error msg=&quot;[graphdriver] prior storage driver overlay2 failed: driver not supported&quot;
Jun 15 11:38:32 lampo.sial dockerd[7728]: failed to start daemon: error initializing graphdriver: driver not supported

I'm doubting whether I can move that folder to an NTFS filesystem. What can I do?

答案1

得分: 1

看起来您正在使用不支持的OverlayFS存储驱动的文件系统。请查看每个存储驱动程序支持的文件系统

所以,首先,请使用 df -h 命令检索您正在使用的文件系统。

然后,您有两个选项:

  1. 从文件 /etc/docker/daemon.json 更改Docker存储驱动程序,并使用支持的存储驱动程序。
  2. 更改您操作系统中使用的文件系统,以支持OverlayFS作为存储驱动程序。
英文:

It seems your are using a not supported filesystem for the OverlayFS storage driver. Please, have a look of the support filesystem for each storage driver

So, first, retrieve your the filesystem you're using with df -h.

Then, you have 2 options:

  1. change the Docker storage-driver from the file /etc/docker/daemon.json and use a supported one
  2. change the filesystem used in your OS to one that will support OverlayFS as storage-driver

huangapple
  • 本文由 发表于 2023年6月15日 18:58:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76481801.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定